-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
40 lines (27 loc) · 1.17 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
CC=g++
CFLAGS=-c -Wall -std=c++11
all: SNS
SNS: amodule.o cnamemodule.o soamodule.o mxmodule.o nsmodule.o config.o ipfilter.o dnspacket.o server.o main.o
g++ Build/amodule.o Build/cnamemodule.o Build/soamodule.o Build/mxmodule.o Build/nsmodule.o Build/config.o Build/ipfilter.o Build/dnspacket.o Build/server.o Build/main.o -o Build/SNS
amodule.o: SNS/amodule.cpp
$(CC) $(CFLAGS) -o Build/amodule.o SNS/amodule.cpp
cnamemodule.o: SNS/cnamemodule.cpp
$(CC) $(CFLAGS) -o Build/cnamemodule.o SNS/cnamemodule.cpp
soamodule.o: SNS/soamodule.cpp
$(CC) $(CFLAGS) -o Build/soamodule.o SNS/soamodule.cpp
mxmodule.o: SNS/mxmodule.cpp
$(CC) $(CFLAGS) -o Build/mxmodule.o SNS/mxmodule.cpp
nsmodule.o: SNS/nsmodule.cpp
$(CC) $(CFLAGS) -o Build/nsmodule.o SNS/nsmodule.cpp
config.o: SNS/config.cpp
$(CC) $(CFLAGS) -o Build/config.o SNS/config.cpp
ipfilter.o: SNS/ipfilter.cpp
$(CC) $(CFLAGS) -o Build/ipfilter.o SNS/ipfilter.cpp
dnspacket.o: SNS/dnspacket.cpp
$(CC) $(CFLAGS) -o Build/dnspacket.o SNS/dnspacket.cpp
server.o: SNS/server.cpp
$(CC) $(CFLAGS) -o Build/server.o SNS/server.cpp
main.o: SNS/main.cpp
$(CC) $(CFLAGS) -o Build/main.o SNS/main.cpp
clean:
rm -rf Build/*.o