File: Makefile

package info (click to toggle)
librnd 4.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,812 kB
  • sloc: ansic: 126,990; sh: 2,602; makefile: 2,145; awk: 7
file content (28 lines) | stat: -rw-r--r-- 589 bytes parent folder | download | duplicates (5)
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
ROOT=../..
CFLAGS = -Wall -g -I$(ROOT)
LIHATA=$(ROOT)/liblihata/parser.o $(ROOT)/liblihata/liblihata.a
OBJS_LIB = ../lhtpers.o
OBJS_TESTER = perstest.o
OBJS = $(OBJS_LIB) $(OBJS_TESTER) $(LIHATA)
LDLIBS = $(LIBGENHT)

include $(ROOT)/Makefile.conf

all: perstest

# dependencies
include Makefile.dep

perstest: $(OBJS) $(LIBGENHT_DEP)

test:
	@cd roundtrip && make test

depend:
	@echo "# Generated by \"make depend\"" > Makefile.dep
	gcc $(CFLAGS) -MM `echo $(OBJS) | sed "s/\.o/.c/g"` >> Makefile.dep

clean:
	-rm $(OBJS) test_simple $(OBJS) 2>/dev/null

include $(ROOT)/Makefile.common