Add systemd script
This commit is contained in:
18
src/Makefile
Normal file
18
src/Makefile
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
BIN=smartdns
|
||||
OBJS=smartdns.o fast_ping.o lib/bitops.o dns_client.o dns_server.o dns.o util.o tlog.o conf.o
|
||||
CFLAGS=-g -O0 -Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing
|
||||
CFLAGS +=-Iinclude
|
||||
CFLAGS += -DBASE_FILE_NAME=\"$(notdir $<)\"
|
||||
CXXFLAGS=-g -O0 -Wall -std=c++11
|
||||
CXXFLAGS +=-Iinclude
|
||||
|
||||
.PHONY: all
|
||||
|
||||
all: $(BIN)
|
||||
|
||||
$(BIN) : $(OBJS)
|
||||
$(CC) $(OBJS) -o $@ -lpthread
|
||||
|
||||
clean:
|
||||
$(RM) $(OBJS) $(BIN)
|
||||
Reference in New Issue
Block a user