addrom

Simple tool for adding a rom entry to a Pandora's Box 3 list.dat
Log | Files | Refs | README | LICENSE

Makefile (1031B)


      1 include config.mk
      2 
      3 SRC = addrom.c
      4 OBJ = ${SRC:.c=.o}
      5 
      6 all: options addrom
      7 
      8 options:
      9 	@echo addrom build options:
     10 	@echo "CFLAGS   = ${CFLAGS}"
     11 	@echo "LDFLAGS  = ${LDFLAGS}"
     12 	@echo "CC       = ${CC}"
     13 
     14 .c.o:
     15 	@echo CC $<
     16 	@${CC} -c ${CFLAGS} $<
     17 
     18 ${OBJ}: config.mk
     19 
     20 addrom: ${OBJ}
     21 	@echo CC -o $@
     22 	@${CC} -o $@ ${OBJ} ${LDFLAGS}
     23 
     24 clean:
     25 	@echo cleaning
     26 	@rm -f addrom ${OBJ}
     27 
     28 install: all
     29 	@echo installing executable file to ${DESTDIR}${PREFIX}/bin
     30 	@mkdir -p ${DESTDIR}${PREFIX}/bin
     31 	@cp -f addrom ${DESTDIR}${PREFIX}/bin
     32 	@chmod 755 ${DESTDIR}${PREFIX}/bin/addrom
     33 	@echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
     34 	@mkdir -p ${DESTDIR}${MANPREFIX}/man1
     35 	@cp -f addrom.1 ${DESTDIR}${MANPREFIX}/man1/addrom.1
     36 	@chmod 644 ${DESTDIR}${MANPREFIX}/man1/addrom.1
     37 
     38 uninstall:
     39 	@echo removing executable file from ${DESTDIR}${PREFIX}/bin
     40 	@rm -f ${DESTDIR}${PREFIX}/bin/addrom
     41 	@echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
     42 	@rm -f ${DESTDIR}${MANPREFIX}/man1/addrom.1
     43 
     44 .PHONY: all options clean install uninstall