2013-04-27 22:10:36 +04:00
|
|
|
|
|
|
|
# := evaluates the expression just once
|
|
|
|
# = evaluates the expression each time it is used
|
|
|
|
|
|
|
|
CFLAGS := $(shell pkg-config --cflags gtk+-2.0)
|
2017-01-31 02:49:38 +03:00
|
|
|
CFLAGS += -O2 -Wall
|
2013-04-27 22:10:36 +04:00
|
|
|
#LDFLAGS = -Wl
|
|
|
|
LIBS := $(shell pkg-config --libs gtk+-2.0)
|
|
|
|
LIBS += -ldl -lgthread-2.0
|
|
|
|
|
|
|
|
OBJS = gtcp-proxy.o gtcp.o
|
|
|
|
|
|
|
|
all: gtcp-proxy
|
|
|
|
|
|
|
|
gtcp-proxy: $(OBJS)
|
|
|
|
gcc -Wall $(CFLAGS) $(LDFLAGS) gtcp-proxy.c gtcp.o -o gtcp-proxy $(LIBS)
|
|
|
|
|
|
|
|
gtcp.o: gtcp.c
|
|
|
|
gcc -c gtcp.c
|
|
|
|
clean::
|
|
|
|
-rm gtcp-proxy.o gtcp.o gtcp-proxy
|