view Makefile.gen @ 82:8df3f73c5f16

Add note about PDCurses for Windows.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 20 Apr 2009 22:02:58 +0300
parents 3ab7751fdad1
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 *~