forked from viknet365/pmaxd
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
25 lines (21 loc) · 821 Bytes
/
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
# build helloworld executable when user executes "make"
all: pmaxd xplsendjson jsongetxplstate testpmaxd
pmaxd: pmaxd.o
$(CC) $(LDFLAGS) pmaxd.o -o pmaxd -lxPL -lconfig
pmaxd.o: pmaxd.c
$(CC) $(CFLAGS) -c pmaxd.c
xplsendjson: xplsendjson.o
$(CC) $(LDFLAGS) xplsendjson.o -o xplsendjson.cgi -lxPL
xplsendjson.o: xplsendjson.c
$(CC) $(CFLAGS) -c xplsendjson.c
jsongetxplstate: jsongetxplstate.o
$(CC) $(LDFLAGS) jsongetxplstate.o -o jsongetxplstate.cgi -lxPL
jsongetxplstate.o: jsongetxplstate.c
$(CC) $(CFLAGS) -c jsongetxplstate.c
testpmaxd: testpmaxd.o
$(CC) $(LDFLAGS) testpmaxd.o -o testpmaxd -lxPL -lconfig
testpmaxd.o: testpmaxd.c
$(CC) $(CFLAGS) -c testpmaxd.c
# remove object files and executable when user executes "make clean"
clean:
rm *.o pmaxd testpmaxd xplsendjson.cgi jsongetxplstate.cgi