-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
36 lines (26 loc) · 813 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
26
27
28
29
30
31
32
33
34
35
36
# Asynchronous SSE Server
# Author: Peter Deak ([email protected])
# License: GPL
CFLAGS= -Wall -O3
L_CL_FLAGS= -Wall -O3
L_SW_FLAGS= -Wall -O3 -lssl -lcrypto
COMPILER=gcc
all: hasses
hasses: hasses.o cdata.o chat.o cio.o
$(COMPILER) $(+) -o $(@) $(L_SW_FLAGS)
hasses.o: hasses.c cdata.h chat.h hasses.h cio.h
$(COMPILER) -c $(<) -o $(@) $(CFLAGS)
cdata.o: cdata.c cdata.h
$(COMPILER) -c $(<) -o $(@) $(CFLAGS)
chat.o: chat.c chat.h cdata.h hasses.h cio.h
$(COMPILER) -c $(<) -o $(@) $(CFLAGS)
cio.o: cio.c cio.h
$(COMPILER) -c $(<) -o $(@) $(CFLAGS)
clean:
rm *.o;rm ./hasses
install:
install -s -m 0755 hasses /usr/local/bin/hasses
install -m 0755 build-hasses-parameters /usr/local/bin/build-hasses-parameters
uninstall:
rm /usr/local/bin/hasses
rm /usr/local/bin/build-hasses-parameters