Mercurial > hg > nnchat
annotate Makefile.gen @ 183:209546c5b7d0
Improve /to command a bit.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 15 Nov 2010 20:01:29 +0200 |
parents | fdc771411795 |
children | 829457be9eea |
rev | line source |
---|---|
183 | 1 #CFLAGS+=-g -W -Wall -O2 -DTH_NO_DEFAULTS |
2 CFLAGS+=-g -W -Wall -DTH_NO_DEFAULTS | |
0 | 3 COMP=$(CC) $(CFLAGS) |
4 | |
5 # | |
6 # Objects | |
7 # | |
8 NNCHAT_BIN=$(BINPATH)nnchat$(EXEEXT) | |
9 | |
159
1b6bc8bf6ac3
Create win32/ subdirectory if needed.
Matti Hamalainen <ccr@tnsp.org>
parents:
103
diff
changeset
|
10 TARGETS+=$(NNCHAT_BIN) |
0 | 11 |
12 | |
13 # | |
14 # Target rules | |
15 # | |
176
f265e7274a45
Add a 'NONBUILD' target list for non-builded targets, use it for win32 subdir creation.
Matti Hamalainen <ccr@tnsp.org>
parents:
159
diff
changeset
|
16 all: $(NONBUILD) $(TARGETS) |
0 | 17 |
83
9baefdd4179c
Use win32/ subdirectory for object files also.
Matti Hamalainen <ccr@tnsp.org>
parents:
68
diff
changeset
|
18 $(OBJPATH)%.o: %.c %.h |
0 | 19 $(COMP) -c -o $@ $< |
20 | |
103
eaa524e153f9
Initial implementation of functions for implementing tab-completion for user names.
Matti Hamalainen <ccr@tnsp.org>
parents:
93
diff
changeset
|
21 $(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
|
22 $(COMP) -o $@ $+ $(LDFLAGS) |
0 | 23 |
24 # | |
25 # Special targets | |
26 # | |
27 clean: | |
177
fdc771411795
Makefile $(RM) implies -f .. don't include the option in commands.
Matti Hamalainen <ccr@tnsp.org>
parents:
176
diff
changeset
|
28 $(RM) $(TARGETS) $(OBJPATH)*.o |
0 | 29 |
30 srcclean: clean | |
177
fdc771411795
Makefile $(RM) implies -f .. don't include the option in commands.
Matti Hamalainen <ccr@tnsp.org>
parents:
176
diff
changeset
|
31 $(RM) *~ |
0 | 32 |