Mercurial > hg > nnchat
annotate Makefile.gen @ 147:77c35cdd5ce3
Remove obsolete #if 1
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 02 Nov 2010 22:49:44 +0200 |
parents | eaa524e153f9 |
children | 1b6bc8bf6ac3 |
rev | line source |
---|---|
93
7f9f6af26a65
Move -DTH_NO_DEFAULTS to Makefile.gen instead.
Matti Hamalainen <ccr@tnsp.org>
parents:
87
diff
changeset
|
1 CFLAGS+=-g -W -Wall -O2 -DTH_NO_DEFAULTS |
0 | 2 COMP=$(CC) $(CFLAGS) |
3 | |
4 # | |
5 # Objects | |
6 # | |
7 NNCHAT_BIN=$(BINPATH)nnchat$(EXEEXT) | |
8 | |
9 TARGETS=$(NNCHAT_BIN) | |
10 | |
11 | |
12 # | |
13 # Target rules | |
14 # | |
15 all: $(TARGETS) | |
16 | |
83
9baefdd4179c
Use win32/ subdirectory for object files also.
Matti Hamalainen <ccr@tnsp.org>
parents:
68
diff
changeset
|
17 $(OBJPATH)%.o: %.c %.h |
0 | 18 $(COMP) -c -o $@ $< |
19 | |
103
eaa524e153f9
Initial implementation of functions for implementing tab-completion for user names.
Matti Hamalainen <ccr@tnsp.org>
parents:
93
diff
changeset
|
20 $(NNCHAT_BIN): nnchat.c $(OBJPATH)libnnchat.o $(OBJPATH)th_util.o $(OBJPATH)th_string.o $(OBJPATH)th_args.o $(OBJPATH)th_config.o |
68
3ab7751fdad1
MingW compatibility, with one ugly kludge.
Matti Hamalainen <ccr@tnsp.org>
parents:
62
diff
changeset
|
21 $(COMP) -o $@ $+ $(LDFLAGS) |
0 | 22 |
23 # | |
24 # Special targets | |
25 # | |
26 clean: | |
87 | 27 $(RM) -f $(TARGETS) $(OBJPATH)*.o |
0 | 28 |
29 srcclean: clean | |
30 $(RM) -f *~ | |
31 |