annotate Makefile.gen @ 354:c01e42fc9adb

More work on SOCKS proxy support, should work now.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 23 Jun 2011 08:26:48 +0300
parents 8c983c3b93eb
children 7c28f38cb6dd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
263
8c983c3b93eb CFLAGS changes.
Matti Hamalainen <ccr@tnsp.org>
parents: 219
diff changeset
1 CFLAGS += -g -W -Wall -Wextra -DTH_NO_DEFAULTS
8c983c3b93eb CFLAGS changes.
Matti Hamalainen <ccr@tnsp.org>
parents: 219
diff changeset
2 CFLAGS += -O2
8c983c3b93eb CFLAGS changes.
Matti Hamalainen <ccr@tnsp.org>
parents: 219
diff changeset
3 #CFLAGS += -std=c99 -pedantic
195
829457be9eea Build system changes to support (in a big kludgy manner) icon and version information resource generation for Win32 binaries.
Matti Hamalainen <ccr@tnsp.org>
parents: 183
diff changeset
4
0
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6 #
213
78f47ae47c2a Fix Windows build.
Matti Hamalainen <ccr@tnsp.org>
parents: 199
diff changeset
7 # Version strings
78f47ae47c2a Fix Windows build.
Matti Hamalainen <ccr@tnsp.org>
parents: 199
diff changeset
8 #
78f47ae47c2a Fix Windows build.
Matti Hamalainen <ccr@tnsp.org>
parents: 199
diff changeset
9 NN_VERSION := $(shell cat VERSION)
78f47ae47c2a Fix Windows build.
Matti Hamalainen <ccr@tnsp.org>
parents: 199
diff changeset
10 comma:= ,
78f47ae47c2a Fix Windows build.
Matti Hamalainen <ccr@tnsp.org>
parents: 199
diff changeset
11 NN_VERSION_COM := $(subst .,$(comma),$(NN_VERSION))
78f47ae47c2a Fix Windows build.
Matti Hamalainen <ccr@tnsp.org>
parents: 199
diff changeset
12
78f47ae47c2a Fix Windows build.
Matti Hamalainen <ccr@tnsp.org>
parents: 199
diff changeset
13 #
0
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 # Objects
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15 #
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16 NNCHAT_BIN=$(BINPATH)nnchat$(EXEEXT)
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17
159
1b6bc8bf6ac3 Create win32/ subdirectory if needed.
Matti Hamalainen <ccr@tnsp.org>
parents: 103
diff changeset
18 TARGETS+=$(NNCHAT_BIN)
0
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
20
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
21 #
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
22 # Target rules
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
23 #
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
24 all: $(NONBUILD) $(TARGETS)
0
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
25
83
9baefdd4179c Use win32/ subdirectory for object files also.
Matti Hamalainen <ccr@tnsp.org>
parents: 68
diff changeset
26 $(OBJPATH)%.o: %.c %.h
219
477449911cb1 Makefile improvements, depend on VERSION etc.
Matti Hamalainen <ccr@tnsp.org>
parents: 213
diff changeset
27 $(CC) $(CFLAGS) -c -o $@ $<
0
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
28
219
477449911cb1 Makefile improvements, depend on VERSION etc.
Matti Hamalainen <ccr@tnsp.org>
parents: 213
diff changeset
29 $(NNCHAT_BIN): nnchat.c $(OBJPATH)libnnchat.o $(OBJPATH)th_util.o $(OBJPATH)th_string.o $(OBJPATH)th_args.o $(OBJPATH)th_config.o $(EXTRAOBJS) VERSION
477449911cb1 Makefile improvements, depend on VERSION etc.
Matti Hamalainen <ccr@tnsp.org>
parents: 213
diff changeset
30 $(CC) $(CFLAGS) -o $@ $(filter %.c %.o,$+) $(LDFLAGS) -DNN_VERSION=\"$(NN_VERSION)\"
0
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
31
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
32 #
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
33 # Special targets
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
34 #
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
35 clean:
177
fdc771411795 Makefile $(RM) implies -f .. don't include the option in commands.
Matti Hamalainen <ccr@tnsp.org>
parents: 176
diff changeset
36 $(RM) $(TARGETS) $(OBJPATH)*.o
0
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
37
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
38 srcclean: clean
177
fdc771411795 Makefile $(RM) implies -f .. don't include the option in commands.
Matti Hamalainen <ccr@tnsp.org>
parents: 176
diff changeset
39 $(RM) *~
0
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
40