Makefile 1003 Bytes
#!smake -k
#
# Makefile for logtest application 

PRDEPTH = ../..

include $(PRDEPTH)/PRdefs

APP =		logtest

OPTIMIZER =	-g

TARGETS =	rom

TEXHFILES =

HFILES =	$(TEXHFILES) logtest.h

CODEFILES   =	logtest.c

CODEOBJECTS =	$(CODEFILES:.c=.o)

CODESEGMENT =	codesegment.o

OBJECTS =	$(CODESEGMENT)

LCINCS =	-I. -I$(ROOT)/usr/include/PR -I $(ROOT)/usr/include
LCOPTS =	-fullwarn -non_shared -G 0

LDIRT  =	$(APP) logtest $(TEXHFILES) *.so

LDFLAGS =	$(MKDEPOPT) -nostdlib -L$(ROOT)/usr/lib -L$(ROOT)/usr/lib/PR -lultra_d

default:	$(TARGETS)

include $(COMMONRULES)

#
# what does it mean to 'install' this thing?
#
install:	default

$(CODESEGMENT):	logtest.o
		$(LD) -o $(CODESEGMENT) -r logtest.o $(LDFLAGS)

#
# This must depend on the generated h-files.
# If we don't do this, smake fails.
#
logtest.o: $(TEXHFILES)

$(OBJECTS): $(HFILES)

rom $(APP):	spec $(OBJECTS) $(MAKEROM)
		$(MAKEROM) -r rom spec

#
# Files specific to Hardware/Emulator
#

logtest.o: logtest.c
	$(CC) $(CFLAGS) -c $<