File: Makefile

package info (click to toggle)
sch-rnd 1.0.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,696 kB
  • sloc: ansic: 119,120; awk: 1,502; makefile: 1,421; sh: 1,404; yacc: 905; lex: 172; xml: 160
file content (31 lines) | stat: -rw-r--r-- 867 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
TRUNK=../..
STDFRG=$(TRUNK)/src/plugins/std_forge

include $(TRUNK)/Makefile.conf
include $(LIBRND_MAK)

CC = $(SCH_RND_CC)
CFLAGS = $(CFLAGS_LIBRND) -I$(STDFRG) -I$(TRUNK)/src -I$(TRUNK)/src/plugins
LDFLAGS = $(LIB_RND_LDFLAGS_EXTRA) $(LDFLAGS_LIBRND)
LDLIBS = -lrnd-3rd


all: std_forge_cond

std_forge_cond: $(STDFRG)/cond_gram.o std_forge_cond.o
	$(CC) -o std_forge_cond  std_forge_cond.o $(STDFRG)/cond_gram.o $(LDFLAGS) $(LDLIBS)

$(STDFRG)/cond_gram.o: $(STDFRG)/cond_gram.c $(STDFRG)/cond.h
	$(CC) -c $(CFLAGS) -o $(STDFRG)/cond_gram.o $(STDFRG)/cond_gram.c

$(STDFRG)/cond_gram.c $(STDFRG)/cond_gram.h: $(STDFRG)/cond_gram.y
	@echo "(not running byaccic from make test)"

std_forge_cond.o: std_forge_cond.c $(STDFRG)/cond.h
	$(CC) -c $(CFLAGS) -o std_forge_cond.o std_forge_cond.c

test:
	cd regression && ./Test.sh

clean:
	-rm cond cond.c regression/*.out