forked from aristomenisTheod/ntua-oslab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (25 loc) · 761 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
###################################################
#
# Makefile
# Simple TCP/IP communication using sockets
#
# Vangelis Koukis <[email protected]>
#
###################################################
CC = gcc
CFLAGS = -Wall
CFLAGS += -g
# CFLAGS += -O2 -fomit-frame-pointer -finline-functions
LIBS =
BINS= chat-server chat-client chat-client-crypto chat-server-crypto
all: $(BINS)
chat-server: chat-server.c chat-common.h
$(CC) $(CFLAGS) -o $@ $< $(LIBS)
chat-client: chat-client.c chat-common.h
$(CC) $(CFLAGS) -o $@ $< $(LIBS)
chat-server-crypto: chat-server-crypto.c chat-common.h
$(CC) $(CFLAGS) -o $@ $< $(LIBS)
chat-client-crypto: chat-client-crypto.c chat-common.h
$(CC) $(CFLAGS) -o $@ $< $(LIBS)
clean:
rm -f *.o *~ $(BINS)