view Makefile.gen @ 25:3b67a9a806a7

Added /color command to change colour.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 09 Jul 2008 17:47:40 +0300
parents 728243125263
children 512775f6b081
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 th_util.o th_string.o th_args.o
	$(COMP) -o $@ $+ $(LDFLAGS)

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

srcclean: clean
	$(RM) -f *~