File: Makefile

package info (click to toggle)
ramond 0.5-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 248 kB
  • ctags: 174
  • sloc: ansic: 1,418; sh: 82; makefile: 26; perl: 10
file content (32 lines) | stat: -rw-r--r-- 743 bytes parent folder | download | duplicates (2)
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
28
29
30
31
32
GCC=/usr/bin/gcc
RM=/bin/rm

CFLAGS ?= -ggdb
LDFLAGS ?=

PCAP_LDFLAGS=-lpcap

APR_CFLAGS=`apr-1-config --includes --cppflags --cflags`
APR_LDFLAGS=`apr-1-config --link-ld --libs `

XML_CFLAGS=`xml2-config --cflags`
XML_LDFLAGS=`xml2-config --libs`

all: ramond

log.o: src/log.c
	$(GCC) -c src/log.c $(CFLAGS) $(CPPFLAGS) $(APR_CFLAGS) $(XML_CFLAGS)

xmlparser.o: src/xmlparser.c src/type.h
	$(GCC) -c src/xmlparser.c $(CFLAGS) $(CPPFLAGS) $(APR_CFLAGS) $(XML_CFLAGS)

main.o: src/main.c src/type.h
	$(GCC) -c src/main.c $(CFLAGS) $(CPPFLAGS) $(APR_CFLAGS) $(XML_CFLAGS)


ramond: main.o xmlparser.o log.o
	$(GCC) log.o xmlparser.o main.o -o ramond $(LDFLAGS) $(PCAP_LDFLAGS) $(APR_LDFLAGS) $(XML_LDFLAGS)

clean:
	@-$(RM) ramond
	@-$(RM) *.o