GNUmakefile 1.02 KB

PRDEPTH = ../..
include $(PRDEPTH)/BBdefs
CC=$(HOST_CC)
GCINCS=-D_LANGUAGE_C -I$(ROOT)/host_include -I$(ROOT)/usr/include
GLDOPTS=-L$(ROOT)/host_lib
LLDLIBS = -lcryptoX86

OPTIMIZER = -g
LCOPTS += -Wall

TARGETS = mkTicket appTicketFile

default : $(TARGETS)

include $(PRDEPTH)/BBrules

exports install: default
	$(INSTALL) -F /usr/sbin $(TARGETS)
	$(INSTALL) -F /usr/sbin bundleGame
	$(INSTALL) -F /usr/sbin gen_desc.pl
	$(INSTALL) -F /usr/host_data rom_thumb.rgba
	$(INSTALL) -F /usr/host_data rom_title.inta
	$(INSTALL) -F /usr/host_data rom_title.txt
	$(INSTALL) -F /usr/host_data isbn.txt
	$(INSTALL) -F /usr/host_data oadid.txt
	$(INSTALL) -F /usr/host_data crid.txt
	$(INSTALL) -F /usr/sbin pubrom
	$(INSTALL) -F /usr/sbin tickrom
	$(INSTALL) -F /usr/sbin publish

mkTicket: mkTicket.o
	$(CCF) -L$(ROOT)/host_lib -o mkTicket mkTicket.o -lcryptoX86 -L/usr/local/ssl/lib -lcrypto -lrsaX86 -lssl


appTicketFile: appTicketFile.o 
	$(CCF) -L$(ROOT)/host_lib -o appTicketFile appTicketFile.o -lcryptoX86 -L/usr/local/ssl/lib -lcrypto -lssl