Debian Codegraph @

Makefile

raw ◀ ▶
1 Debian patch touch this file
1 # if you want to change/override some variables, do so in a file called
2 # config.mak, which is gets included automatically if it exists.
3
•4 prefix = /usr
5 bindir = $(prefix)/bin
6
7 PROG = microsocks
8 SRCS = sockssrv.c server.c sblist.c sblist_delete.c
9 OBJS = $(SRCS:.c=.o)
10
11 LIBS = -lpthread
12
13 CFLAGS += -Wall -std=c99
14
15 INSTALL = ./install.sh
16
17 -include config.mak
18
19 all: $(PROG)
20
21 install: $(PROG)
22 $(INSTALL) -D -m 755 $(PROG) $(DESTDIR)$(bindir)/$(PROG)
23
24 clean:
25 rm -f $(PROG)
26 rm -f $(OBJS)
27
28 %.o: %.c
29 $(CC) $(CPPFLAGS) $(CFLAGS) $(INC) $(PIC) -c -o $@ $<
30
31 $(PROG): $(OBJS)
32 $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@
33
34 .PHONY: all clean install
35