GNUmakefile.in 570 Bytes
Newer Older
1 2 3 4 5
#
# Insert Copyright Here.
#
include ../Makeconf

6 7 8
all:	tmcd tmcc

DISTCLEAN_FILES = tmcd.restart
9

10
include ../GNUmakerules
11 12 13 14 15 16 17 18 19 20 21 22 23 24

tmcd: tmcd.c
	$(CC) $(CFLAGS) -g -o tmcd tmcd.c \
		-I/usr/local/include \
		$(LFLAGS) -L/usr/local/lib/mysql -lmysqlclient

tmcc: tmcc.c
	$(CC) $(CFLAGS) -g -o tmcc tmcc.c $(LFLAGS)

tmcc.c:	decls.h
tmcd.c:	decls.h

install:	all

25 26
install:	$(INSTALL_SBINDIR)/tmcd \
		$(INSTALL_SBINDIR)/tmcd.restart
27 28 29 30 31 32 33

$(INSTALL_BINDIR)/tmcd/%: %
	@echo "Installing $<"
	-mkdir -p $(INSTALL_BINDIR)/tmcd
	$(INSTALL_PROGRAM) $< $@

clean: 
34
	rm -f *.o core tmcd tmcc