Makefile
1.16 KB
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
34
35
36
37
38
39
40
41
42
43
include $(ROOT)/usr/include/make/PRdefs
include $(COMMONRULES)
APP = 64DD
TARGETS = rom
OPTIMIZER = -O2
DEBUGOPTION = -D_B084
#LEO_LIB = b084_sp
LEO_LIB = leo_sp
MAKEFILE = Makefile
ULXSOURCES = 64dd.c ulxmain.c ulxfont.c ulxutil.c ulxlib.c ulxdevcmd.c \
ulxdevwr.c ulxbench.c ulxlife.c ulxbuf.c
DATASOURCES = buffer.c
ULXOBJECTS = $(ULXSOURCES:.c=.o)
DATAOBJECTS = $(DATASOURCES:.c=.o)
ULXSEGMENT = segulx
OBJECTS = $(ULXSEGMENT) $(DATAOBJECTS)
LCINCS = -I. -I../include -I$(ROOT)/usr/include/PR -I$(ROOT)/usr/include -I$ROOT/PR/libleo/org/include
LCOPTS = -fullwarn -non_shared -G 0 $(DEBUGOPTION)
LDIRT = $(APP) *.so
#LDFLAGS1 = $(MKDEPOPT) -nostdlib \
# -u osEPiStartDma -u osEPiReadIo -u osEPiWriteIo \
# -L. \
# -l$(LEO_LIB) -lultra
# -L$(ROOT)/usr/lib -lleosp -lultra
LDFLAGS1 = $(MKDEPOPT) -nostdlib -L$(ROOT)/usr/lib -lleo_sp -lultra
default: $(TARGETS)
$(ULXSEGMENT): $(ULXOBJECTS) $(MAKEFILE)
$(LD) -o $(ULXSEGMENT) -r $(ULXOBJECTS) $(LDFLAGS1)
$(TARGETS) $(APP): spec $(OBJECTS) $(MAKEROM)
$(MAKEROM) -r $(TARGETS) -m spec >makerom.map