GNUmakefile
542 Bytes
#!smake
#
# Makefile for tool to calculate Nintendo Check Code
#
PRDEPTH = ../..
include $(PRDEPTH)/PRdefs
CC=$(HOST_CC)
GCINCS=-I$(ROOT)/host_include
GLDOPTS=
OPTIMIZER = -g
TARGETS= calcncc
CFILES = calcncc.c
LCINCS = -I. -I$(PRDEPTH)/include
#LCOPTS = -fullwarn -D_DEBUG
LCOPTS = -Wall
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)