blob: 51a4afb87dc05f6d811270bd292b8bf923a20ff9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- Makefile
+++ Makefile
@@ -1,15 +1,16 @@
-CFLAGS += -O2 -s
+CC = gcc
+CFLAGS += -DGSWEB
#CFLAGS += -ggdb
PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
SRC = src/gslist.c src/enctype1_decoder.c src/enctype2_decoder.c src/enctype_shared.c src/mydownlib.c
-LIBS = -lpthread -lmysqlclient
+LIBS = -lpthread
O = $(SRC:.c=.o)
all: gslist
gslist: $(O)
- $(CC) $(SRC) $(CFLAGS) -o gslist $(LIBS) -DGSWEB -DSQL
+ $(CC) $(CFLAGS) $(LDFLAGS) $(O) -o gslist $(LIBS)
clean:
rm -f gslist src/gslist.o src/enctype1_decoder.o src/enctype2_decoder.o src/enctype_shared.o src/mydownlib.o
|