revert between 56095 -> 55830 in arch
[AROS.git] / arch / .unmaintained / m68k-pp-native / boot / Makefile
blob7520775e012e438f272d9b82a034d3b9ce995839
1 ## Makefile for LCD test
2 TOP = ../../..
3 include $(TOP)/config/host.cfg
4 AROS_TARGET_ARCH =
6 TARGET = exec
7 APPNAME = "Exec test"
8 APPID = "STB3"
10 OBJS = $(TARGET).o gfx.o
11 LIBS = -L$(TOP)/bin/palm-m68k/AROS/lib -lexec -lutility -larossupport -larosc -lamiga
13 CC = m68k-palmos-coff-gcc
14 AS = m68k-palmos-coff-as
16 INC = -I$(TOP)/bin/palm-m68k/AROS/Include -I. -I../
19 CFLAGS = -Wall -g -O2 $(INC) $(USRINC)
21 PILRC = pilrc
22 OBJRES = m68k-palmos-coff-obj-res
23 NM = m68k-palmos-coff-nm
24 BUILDPRC = build-prc
25 PILOTXFER = pilot-xfer
27 all: $(TARGET).prc
29 .S.o:
30 $(CC) $(TARGETFLAGS) -c $<
32 .c.s:
33 $(CC) $(CSFLAGS) AA -I. $<
35 #%.o : %.s
36 # $(AS) -g -I. $^ -o $@
38 $(TARGET).prc: code0000.$(TARGET).grc code0001.$(TARGET).grc data0000.$(TARGET).grc pref0000.$(TARGET).grc rloc0000.$(TARGET).grc bin.res
39 $(BUILDPRC) $(TARGET).prc $(APPNAME) $(APPID) code0001.$(TARGET).grc code0000.$(TARGET).grc data0000.$(TARGET).grc *.bin pref0000.$(TARGET).grc rloc0000.$(TARGET).grc
41 code0000.$(TARGET).grc: $(TARGET)
42 $(OBJRES) $(TARGET)
44 code0001.$(TARGET).grc: code0000.$(TARGET).grc
46 data0000.$(TARGET).grc: code0000.$(TARGET).grc
48 pref0000.$(TARGET).grc: code0000.$(TARGET).grc
50 rloc0000.$(TARGET).grc: code0000.$(TARGET).grc
52 bin.res: $(TARGET).rcp $(TARGET).pbm
53 $(PILRC) $(TARGET).rcp .
54 touch bin.res
56 $(TARGET): $(OBJS)
57 $(CC) $(CFLAGS) $(OBJS) -o $(TARGET) $(LIBS)
58 ! $(NM) -u $(TARGET) | grep .
60 send: $(TARGET).prc
61 $(PILOTXFER) -p /dev/ttyS0 -i $(TARGET).prc
63 gdbpanel: $(TARGET).prc
64 $(PILOTXFER) -p /dev/ttyS0 -i /home/palm/gdbpanel/gdbpanel.prc
66 emu: $(TARGET).prc
67 $(PILOTXFER) -p /dev/ttyqe -i $(TARGET).prc
68 $(PILOTXFER) -p /dev/ttyqe -i /home/palm/gdbpanel/gdbpanel.prc
70 depend:
71 makedepend -Y -I. *.c
73 clean:
74 -rm -f *.[oa] $(TARGET) *.bin bin.res *.grc Makefile.bak *.prc
76 veryclean: clean
77 -rm -f $(TARGET).prc pilot.ram pilot.scratch