Makefile
author viric@llimona
Tue, 03 Apr 2007 23:53:06 +0200
changeset 83 94945f1c7326
parent 79 f99c2548fac4
child 85 36bec04b8afd
permissions -rw-r--r--
Fixed a wrong makefile. Stupid me.

PREFIX?=/usr/local
GCCFLAGS=-D_XOPEN_SOURCE -D__STRICT_ANSI__
CFLAGS=-pedantic -ansi -Wall -g -O0 ${GCCFLAGS}
OBJECTS=main.o \
	server.o \
	server_start.o \
	client.o \
	msgdump.o \
	jobs.o \
	execute.o \
	msg.o \
	client_run.o \
	mail.o
INSTALL=/usr/bin/install -c

ts: $(OBJECTS)
	gcc -o ts $^

# Dependencies
main.o: main.c main.h
server_start.o: server_start.c main.h
server.o: server.c main.h msg.h
client.o: client.c main.h msg.h
msgdump.o: msgdump.c main.h msg.h
jobs.o: jobs.c main.h msg.h
execute.o: execute.c main.h msg.h
msg.o: msg.c main.h msg.h
client_run.o: client_run.c main.h
mail.o: mail.c main.h

clean:
	rm -f *.o ts

install:
	$(INSTALL) -d $(PREFIX)/bin
	$(INSTALL) ts $(PREFIX)/bin
	$(INSTALL) -d $(PREFIX)/man/man1
	$(INSTALL) -m 644 ts.1 $(PREFIX)/man/man1
	gzip $(PREFIX)/man/man1/ts.1