ignore SIGPIPE
[rofl0r-microsocks.git] / Makefile
blobcd6a138d0142d1ba69eb7111e64a44f41995f16f
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.
4 prefix = /usr/local
5 bindir = $(prefix)/bin
7 PROG = microsocks
8 SRCS = sockssrv.c server.c sblist.c sblist_delete.c
9 OBJS = $(SRCS:.c=.o)
11 LIBS = -lpthread
13 CFLAGS += -Wall -std=c99
15 -include config.mak
17 all: $(PROG)
19 install: $(PROG)
20 install -d $(DESTDIR)/$(bindir)
21 install -D -m 755 $(PROG) $(DESTDIR)/$(bindir)/$(PROG)
23 clean:
24 rm -f $(PROG)
25 rm -f $(OBJS)
27 %.o: %.c
28 $(CC) $(CPPFLAGS) $(CFLAGS) $(INC) $(PIC) -c -o $@ $<
30 $(PROG): $(OBJS)
31 $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@
33 .PHONY: all clean install