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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
183
209546c5b7d0 Improve /to command a bit.
Matti Hamalainen <ccr@tnsp.org>
parents: 177
diff changeset
1 #CFLAGS+=-g -W -Wall -O2 -DTH_NO_DEFAULTS
209546c5b7d0 Improve /to command a bit.
Matti Hamalainen <ccr@tnsp.org>
parents: 177
diff changeset
2 CFLAGS+=-g -W -Wall -DTH_NO_DEFAULTS
0
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3 COMP=$(CC) $(CFLAGS)
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5 #
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6 # Objects
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7 #
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8 NNCHAT_BIN=$(BINPATH)nnchat$(EXEEXT)
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9
159
1b6bc8bf6ac3 Create win32/ subdirectory if needed.
Matti Hamalainen <ccr@tnsp.org>
parents: 103
diff changeset
10 TARGETS+=$(NNCHAT_BIN)
0
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13 #
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 # Target rules
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
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
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
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
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19 $(COMP) -c -o $@ $<
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
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
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
23
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
24 #
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
25 # Special targets
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26 #
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
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
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
29
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
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
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
32