diff options
author | Cem Keylan <cem@ckyln.com> | 2021-07-22 03:23:56 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2021-07-22 03:23:56 +0300 |
commit | af32ee39f2576858321483d77699f7d4a5a8bf24 (patch) | |
tree | 52a010d225d100caa2075bb18956a37d72dd5a92 /Makefile | |
parent | 507ba2bdc6d01c53a72cdee1f8c5c8db0ba1a1aa (diff) | |
download | otools-af32ee39f2576858321483d77699f7d4a5a8bf24.tar.gz |
add configure script
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 25 |
1 files changed, 15 insertions, 10 deletions
@@ -1,4 +1,11 @@ -include config.mk +CFLAGS += -Wall -Wno-pointer-sign -Wno-maybe-uninitialized \ + -Wno-attributes -I${PWD}/includedir \ + -D 'DEF_WEAK(n)=_Static_assert(1, "")' \ + -idirafter ${PWD}/include \ + -idirafter ${PWD}/sys \ + -idirafter ${PWD}/lib/libutil \ + -idirafter ${PWD}/lib/libcrypto + BIN = \ diff \ doas \ @@ -79,6 +86,11 @@ MAN = \ bin/pax/tar.1 \ usr.bin/signify/signify.1 +MANDOCLIBS = ${LIB} +GREPLIBS = ${LIB} + +include config.mk + .y.c: ${YACC} -o $@ $< .c.o: @@ -89,13 +101,6 @@ MAN = \ all: ${BIN} ${BINOBJ}: ${LIB} -MANDOCLIBS = ${LIB} -GREPLIBS = ${LIB} -ifeq (${ZLIB}, lib/libz/libz.a) - MANDOCLIBS += ${ZLIB} - GREPLIBS += ${ZLIB} -endif - # ------------------------------------------------------------------------------ # diff DIFFOBJ = \ @@ -152,8 +157,8 @@ GREPOBJ = \ usr.bin/grep/util.o BINOBJ += ${GREPOBJ} -grep: ${GREPOBJ} ${LIB} - ${CC} ${LDFLAGS} -o $@ ${GREPOBJ} ${LIB} -lz +grep: ${GREPOBJ} ${GREPLIBS} + ${CC} ${LDFLAGS} -o $@ ${GREPOBJ} ${LIB} ${ZLIB} ${LIBFTS} # ------------------------------------------------------------------------------ # m4 |