Makefile 450 Bytes
Newer Older
Jeroen Vreeken's avatar
Jeroen Vreeken committed
1
2
3
4

CFLAGS= -Wall -O3 
LDFLAGS= -lpthread

Jeroen Vreeken's avatar
Jeroen Vreeken committed
5
6
7
8
CFLAGS+=`pkg-config --cflags glib-2.0`
LDFLAGS+=`pkg-config --libs glib-2.0`

UTILSRCS= tcp_connect.c tcp_listen.c config.c weather.c dt_model.c location.c dt_host.c
Jeroen Vreeken's avatar
Jeroen Vreeken committed
9
10
11
12
13
14
15
16
17
18
19
20
21
22
UTILOBJS= $(UTILSRCS:.c=.o)

all: $(UTILOBJS) utils weather_test

utils: utils.a($(UTILOBJS))

weather_test: weather_test.o weather.o tcp_connect.o

clean:
	rm -rf *.o *.a *.d weather_test

SRCS= $(UTILSRCS) weather_test.c

include ../build.mk