Makefile
493 Bytes
#!smake
#
# Makefile for tool to calculate Nintendo Check Code
#
PRDEPTH = ../..
include $(PRDEPTH)/PRdefs
OPTIMIZER = -g
TARGETS= calcncc
CFILES = calcncc.c
LCINCS = -I. -I$(PRDEPTH)/include
#LCOPTS = -fullwarn -D_DEBUG
LCOPTS = -fullwarn
LDIRT= calcncc
default: $(TARGETS)
include $(COMMONRULES)
calcncc: $(OBJECTS)
$(CCF) $(ROOT)/usr/lib/PR/convert.o $(ROOT)/usr/lib/PR/table.o \
$(OBJECTS) $(LDFLAGS) -o $@
exports install: default
$(INSTALL) -m 555 -F /usr/sbin $(TARGETS)