Radek Krejci | 469aab8 | 2012-07-22 18:42:20 +0200 | [diff] [blame] | 1 | NAME=mod_netconf |
Radek Krejci | 469aab8 | 2012-07-22 18:42:20 +0200 | [diff] [blame] | 2 | |
| 3 | APXS=/usr/sbin/apxs2 |
| 4 | |
Radek Krejci | 8fd1f5e | 2012-07-24 17:33:36 +0200 | [diff] [blame] | 5 | CFLAGS=-I/usr/include/libxml2 -I/usr/include/json |
| 6 | LIBS=-lnetconf -lxml2 -lz -lm -ljson |
Radek Krejci | 469aab8 | 2012-07-22 18:42:20 +0200 | [diff] [blame] | 7 | |
Radek Krejci | 8fd1f5e | 2012-07-24 17:33:36 +0200 | [diff] [blame] | 8 | all: module client |
| 9 | |
| 10 | module: mod_netconf.c |
| 11 | $(APXS) $(CPPFLAGS) $(CFLAGS) $(LIBS) -c mod_netconf.c |
| 12 | |
| 13 | client: test-client.c |
| 14 | gcc -std=gnu99 -Wall -g -ljson -I/usr/include/json test-client.c -o test-client |
Radek Krejci | 469aab8 | 2012-07-22 18:42:20 +0200 | [diff] [blame] | 15 | |
| 16 | install: $(NAME).la |
| 17 | $(APXS) -i $(NAME).la |
| 18 | |
| 19 | clean: |
Radek Krejci | 8fd1f5e | 2012-07-24 17:33:36 +0200 | [diff] [blame] | 20 | rm -rf .libs *.la *.lo *.slo test-client |
Radek Krejci | 469aab8 | 2012-07-22 18:42:20 +0200 | [diff] [blame] | 21 | |