Makefile 1.16 KB

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