Move some data structures and definitions to a header file
[project/relayd.git] / Makefile
1 CFLAGS = -Os -Wall -Werror -pedantic --std=gnu99
2 CPPFLAGS = -I.
3 LDFLAGS =
4
5 all: relayd 
6
7 relayd: uloop.o main.o
8         $(CC) -o $@ $^ $(LDFLAGS)
9
10 uloop.c: uloop.h
11 main.c: uloop.h relayd.h list.h
12
13 %.o: %.c
14         $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $^
15
16
17 clean:
18         rm -f relayd *.o