summaryrefslogtreecommitdiff
path: root/Build/source/utils/xml2pmx/xml2pmx-src/obsrc/Makefile
blob: d2ed6dfad9ccc1298b8631030e9c395f97ccb0f0 (plain)
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
33
# src/Makefile

OBCDIR = /usr/local/obc-3.2

OBC = $(OBCDIR)/bin/obc
OBLINK = $(OBCDIR)/lib/obc/oblink
OBCLIB = $(OBCDIR)/lib/obc

OBJS = MyFiles.k Strings1.k Fifo.k b.k Complete.k Testbed.k

all: xml2pmx

update: ../image.c

xml2pmx: $(OBJS)
	$(OBC) $^ -o $@

../image.c: $(OBJS) force
	$(OBLINK) -g -pl -L $(OBCLIB) $(OBJS) -C -p -o $@ >../primtab0.c

%.k: %.m
	$(OBC) -c -x $< -o $@

clean: force
	rm -f *.k

force:

###

b.k: Strings1.k Fifo.k MyFiles.k
Complete.k: Strings1.k MyFiles.k
Testbed.k: Strings1.k b.k Complete.k MyFiles.k