blob: af7dbd8428b0e839b9abd41d658234fe337e3527 [file] [log] [blame]
Radek Krejci469aab82012-07-22 18:42:20 +02001NAME=mod_netconf
Radek Krejci469aab82012-07-22 18:42:20 +02002
3APXS=/usr/sbin/apxs2
4
Radek Krejci8fd1f5e2012-07-24 17:33:36 +02005CFLAGS=-I/usr/include/libxml2 -I/usr/include/json
6LIBS=-lnetconf -lxml2 -lz -lm -ljson
Radek Krejci469aab82012-07-22 18:42:20 +02007
Radek Krejci8fd1f5e2012-07-24 17:33:36 +02008all: module client
9
10module: mod_netconf.c
11 $(APXS) $(CPPFLAGS) $(CFLAGS) $(LIBS) -c mod_netconf.c
12
13client: test-client.c
14 gcc -std=gnu99 -Wall -g -ljson -I/usr/include/json test-client.c -o test-client
Radek Krejci469aab82012-07-22 18:42:20 +020015
16install: $(NAME).la
17 $(APXS) -i $(NAME).la
18
19clean:
Radek Krejci8fd1f5e2012-07-24 17:33:36 +020020 rm -rf .libs *.la *.lo *.slo test-client
Radek Krejci469aab82012-07-22 18:42:20 +020021