mirror of
https://github.com/adulau/ootp.git
synced 2024-12-27 03:06:08 +00:00
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
# $Id: Makefile 129 2010-06-15 14:25:43Z maf $
|
|
|
|
what:
|
|
@echo
|
|
@echo "make hardware-systype"
|
|
@echo
|
|
@echo "This Makefile knows about the following"
|
|
@echo
|
|
@echo i386-fbsd i386-linux i386-macosx
|
|
@echo
|
|
|
|
i386-fbsd:
|
|
@make CC="gcc" CFLAGS="-I../common -g -DHAVE_STRING_H -DHAVE_STRINGS_H -DDEBUG -Wall -std=c99 -pedantic" LIBS="-lcurl" all
|
|
|
|
i386-linux:
|
|
@make CC="gcc" CFLAGS="-I../common -g -DHAVE_STRING_H -DHAVE_STRINGS_H -DDEBUG -D_BSD_SOURCE -D_XOPEN_SOURCE -Wall -std=c99 -pedantic" LIBS="-lcurl " all
|
|
|
|
i386-macosx:
|
|
@make CC="gcc" CFLAGS="-I../common -g -DHAVE_STRING_H -DHAVE_STRINGS_H -DDEBUG -Wall -std=c99 -pedantic" LIBS="-lcurl" all
|
|
|
|
INSTALL=install -c -m0755
|
|
|
|
.c.o:; $(CC) $(CFLAGS) $(INC) -c $*.c -o $*.o
|
|
|
|
BIN = otp-tokend
|
|
COBJS = ../common/xerr.o
|
|
OBJS = version.o ${BIN}.o
|
|
LFLAGS = -L/usr/local/lib
|
|
INC = -I/usr/local/include
|
|
|
|
BINDIR=/usr/local/ootp/bin
|
|
|
|
all: version ${COBJS} ${OBJS} ${BIN}
|
|
|
|
version:
|
|
rm -f version.c; ../build/version ../VERSION ${BIN} > version.c
|
|
|
|
version.c:
|
|
|
|
install:
|
|
mkdir -p ${BINDIR}
|
|
${INSTALL} ${BIN} ${BINDIR}
|
|
@echo files installed in ${BINDIR}
|
|
|
|
clean:
|
|
/bin/rm -f ${BIN} ${OBJS} version.c
|
|
|
|
${BIN}: ${COBJS} ${OBJS}
|
|
$(CC) $(CFLAGS) $(LFLAGS) $(INC) -o ${BIN} ${COBJS} ${OBJS} $(LIBS)
|
|
|