GNUmakefile 538 Bytes
#!smake

LCOPTS = -g
PRDEPTH = ../../
include $(PRDEPTH)/PRdefs
CC=$(HOST_CC)
GCINCS=-D_LANGUAGE_C -I$(ROOT)/host_include
GLDOPTS=-L$(ROOT)/host_lib

HDR	= ../hdr
MBI	= ../../include
SIMLIB	= ../simlib

LCINCS	= -I. \
	-I$(SIMLIB) \
	-I$(HDR) \
	-I$(MBI)

TARGETS	= filter monitor idf vparse ctrldesc rdram2new

LLDOPTS	= -L. -L$(SIMLIB) -limage
LNFLAGS	= $(CFLAGS)

default : $(TARGETS)

include $(PRDEPTH)/PRrules

.c:
	$(HOST_CC) $*.c $(CFLAGS) -o $* $(LDFLAGS)

exports install: $(TARGETS)
	$(INSTALL) -m 555 -F /usr/sbin $(TARGETS)