added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / arch / .unmaintained / m68k-pp-native / loader / Makefile
blob7abba38b4f1bc7bd50fb5ac759311dda87dc7677
1 ## Makefile for LCD test
2 TOP = ../../..
3 include $(TOP)/config/host.cfg
4 AROS_TARGET_ARCH =
6 TARGET = loader
7 APPNAME = "AROS loader"
8 APPID = "AROS"
10 OBJS = $(TARGET).o util.o
12 CC = m68k-palmos-coff-gcc
13 AS = m68k-palmos-coff-as
15 INC = -I$(TOP)/bin/palm-m68k/AROS/Include -I.
18 CFLAGS = -Wall -g -O2 $(INC) $(USRINC)
20 PILRC = pilrc
21 OBJRES = m68k-palmos-coff-obj-res
22 NM = m68k-palmos-coff-nm
23 BUILDPRC = build-prc
24 PILOTXFER = pilot-xfer
26 all: $(TARGET).prc
28 .S.o:
29 $(CC) $(TARGETFLAGS) -c $<
31 .c.s:
32 $(CC) $(CSFLAGS) AA -I. $<
34 #%.o : %.s
35 # $(AS) -g -I. $^ -o $@
37 $(TARGET).prc: code0000.$(TARGET).grc code0001.$(TARGET).grc data0000.$(TARGET).grc pref0000.$(TARGET).grc rloc0000.$(TARGET).grc bin.res
38 $(BUILDPRC) $(TARGET).prc $(APPNAME) $(APPID) code0001.$(TARGET).grc code0000.$(TARGET).grc data0000.$(TARGET).grc *.bin pref0000.$(TARGET).grc rloc0000.$(TARGET).grc
40 code0000.$(TARGET).grc: $(TARGET)
41 $(OBJRES) $(TARGET)
43 code0001.$(TARGET).grc: code0000.$(TARGET).grc
45 data0000.$(TARGET).grc: code0000.$(TARGET).grc
47 pref0000.$(TARGET).grc: code0000.$(TARGET).grc
49 rloc0000.$(TARGET).grc: code0000.$(TARGET).grc
51 bin.res: $(TARGET).rcp $(TARGET).pbm
52 $(PILRC) $(TARGET).rcp .
53 touch bin.res
55 $(TARGET): $(OBJS)
56 $(CC) $(CFLAGS) $(OBJS) -o $(TARGET) $(LIBS)
57 ! $(NM) -u $(TARGET) | grep .
59 send: $(TARGET).prc
60 $(PILOTXFER) -p /dev/ttyS0 -i $(TARGET).prc
62 gdbpanel: $(TARGET).prc
63 $(PILOTXFER) -p /dev/ttyS0 -i /home/palm/gdbpanel/gdbpanel.prc
65 emu: $(TARGET).prc
66 $(PILOTXFER) -p /dev/ttyqe -i $(TARGET).prc
67 $(PILOTXFER) -p /dev/ttyqe -i /home/palm/gdbpanel/gdbpanel.prc
69 depend:
70 makedepend -Y -I. *.c
72 clean:
73 -rm -f *.[oa] $(TARGET) *.bin bin.res *.grc Makefile.bak *.prc
75 veryclean: clean
76 -rm -f $(TARGET).prc pilot.ram pilot.scratch