ootp/bcload/Makefile

52 lines
1.7 KiB
Makefile
Raw Permalink Normal View History

2017-01-03 11:18:19 +00:00
# $Id: Makefile 189 2011-05-26 03:50:39Z maf $
2017-01-03 11:10:10 +00:00
what:
@echo
@echo "make hardware-systype"
@echo
@echo "This Makefile knows about the following"
@echo
@echo i386-fbsd i386-linux i386-yum-linux i386-macosx
@echo
i386-fbsd:
2017-01-03 11:18:19 +00:00
@make CC="gcc" CFLAGS="-I../common -I/usr/local/pcsc/include/PCSC -DSCR_PCSC -g -DHAVE_STRING_H -DHAVE_STRINGS_H -DDEBUG -Wall -std=c99 -pedantic" LFLAGS="-L/usr/local/pcsc/lib -L/usr/local/lib" LIBS="-lpcsclite" all
2017-01-03 11:10:10 +00:00
i386-linux:
@make CC="gcc" CFLAGS="-I../common -I/usr/local/include/PCSC -DSCR_PCSC -g -DHAVE_STRING_H -DHAVE_STRINGS_H -DDEBUG -Wall -D_BSD_SOURCE -D_XOPEN_SOURCE -std=c99 -pedantic" LFLAGS="-L/usr/local/pcsc/lib" LIBS="/usr/local/lib/libpcsclite.a -lpthread" all
i386-yum-linux:
@make CC="gcc" CFLAGS="-I../common -I/usr/include/PCSC -DSCR_PCSC -g -DHAVE_STRING_H -DHAVE_STRINGS_H -DDEBUG -D_BSD_SOURCE -D_XOPEN_SOURCE -Wall -std=c99 -pedantic" LIBS="-lpcsclite -lpthread" all
i386-macosx:
@make CC="gcc" CFLAGS="-I../common -I/System/Library/Frameworks/PCSC.framework/Versions/Current/Headers -DSCR_PCSC -g -DHAVE_STRING_H -DHAVE_STRINGS_H -DDEBUG -Wall -std=c99 -pedantic " LFLAGS="-framework PCSC" LIBS="-lssl" all
INSTALL=install -c -m0755
.c.o:; $(CC) $(CFLAGS) -c $*.c -o $*.o
2017-01-03 11:16:53 +00:00
BIN = bcload
COBJS = ../common/xerr.o ../common/str.o ../common/acr30.o ../common/scr.o ../common/sccmd.o
OBJS = version.o ${BIN}.o
2017-01-03 11:10:10 +00:00
BINDIR=/usr/local/ootp/bin
2017-01-03 11:16:53 +00:00
all: version ${COBJS} ${OBJS} ${BIN}
version:
rm -f version.c; ../build/version ../VERSION ${BIN} > version.c
version.c:
2017-01-03 11:10:10 +00:00
install:
mkdir -p ${BINDIR}
2017-01-03 11:16:53 +00:00
${INSTALL} ${BIN} ${BINDIR}
2017-01-03 11:10:10 +00:00
@echo files installed in ${BINDIR}
clean:
2017-01-03 11:16:53 +00:00
/bin/rm -f ${BIN} ${OBJS} version.c
2017-01-03 11:10:10 +00:00
2017-01-03 11:16:53 +00:00
${BIN}: ${COBJS} ${OBJS}
$(CC) $(CFLAGS) $(LFLAGS) $(INC) -o ${BIN} ${COBJS} ${OBJS} $(LIBS)
2017-01-03 11:10:10 +00:00