summaryrefslogtreecommitdiff
path: root/src/Makefile-listserver
blob: c2cba31879a258dde39d4a96272f7e81e86546fc (plain)
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

#CC = /usr/local/gcc/bin/gcc
CC = gcc

#CFLAGS = -O2 -DSUPPORT_NET_SDL_UDP  -I../include -Wall `sdl-config --cflags`
CFLAGS = -g -O0 -std=c99 -D_GNU_SOURCE=1 -I../include -Wall 
#CFLAGS = -O2 -DDESTDIR=\"$(DESTDIR)\" `sdl-config --cflags` -I../include -Wall

BUILD_DIR = .
LIBS =

FILES = listServer.o udp.o list.o 
 
listServer: $(FILES)
	$(CC) $(CFLAGS) $(LIBS) -o $(BUILD_DIR)/listServer $(BUILD_DIR)/*.o

listServer.o: listServer.c 
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/listServer.o -c listServer.c

list.o: list.c ../include/list.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/list.o -c list.c

udp.o: udp.c ../include/udp.h
	$(CC) $(CFLAGS) -o $(BUILD_DIR)/udp.o -c udp.c

clean:
	rm -rf *.o *.c~ ../include/*.h~ Makefile~