view Makefile.gen @ 68:3ab7751fdad1

MingW compatibility, with one ugly kludge.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 14 Nov 2008 07:15:57 +0200
parents ff5d74f0d428
children 9baefdd4179c
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)

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

srcclean: clean
	$(RM) -f *~