view Makefile.gen @ 62:ff5d74f0d428

Moved some functions to "libnnchat".
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 11 Nov 2008 21:57:51 +0200
parents 512775f6b081
children 3ab7751fdad1
line wrap: on
line source

CFLAGS+=-g -W -Wall
COMP=$(CC) $(CFLAGS)

#
# Objects
#
NNCHAT_BIN=$(BINPATH)nnchat$(EXEEXT)

TARGETS=$(NNCHAT_BIN)


#
# Target rules
#
all: $(TARGETS)

%.o: %.c %.h
	$(COMP) -c -o $@ $<

$(NNCHAT_BIN): nnchat.c libnnchat.o th_util.o th_string.o th_args.o
	$(COMP) -o $@ $+ $(LDFLAGS) -lcurses

#
# Special targets
#
clean:
	$(RM) -f $(TARGETS) *.o

srcclean: clean
	$(RM) -f *~