aboutsummaryrefslogtreecommitdiff
path: root/scaf/modules/Makefile
blob: 7bb0dc9a0611cdb5b1a12e0844b47940a805500d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
OBJ = carules.scafo

SCAFDIR = ../system

.SUFFIXES: .scaf
.SUFFIXES: .scafo

.scaf.o:
	$(SCAFDIR)/scafc.pl -I$(SCAFDIR) $*.scaf | as -o $*.o

.o.scafo:
	gcc -export_dynamic -shared -o $*.scafo $*.o
	rm $*.o
	strip --strip-unneeded $*.scafo

all:	$(OBJ)

clean:
	rm -f *.scafo
	rm -f *~