FreeCalypso > hg > sms-coding-utils
diff Makefile @ 25:2a19b44c272e
convert to new ThemWi configure and build system
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 21 May 2024 01:59:17 +0000 |
parents | b014abaf0898 |
children | aae078d9eaa6 |
line wrap: on
line diff
--- a/Makefile Sat Sep 02 19:45:47 2023 +0000 +++ b/Makefile Tue May 21 01:59:17 2024 +0000 @@ -1,26 +1,26 @@ -CC= gcc -CFLAGS= -O2 PROGDIR=enc-text gen-pdu scripts LIBDIR= libcoding SUBDIR= ${PROGDIR} ${LIBDIR} - -INSTALL_PREFIX= /opt/freecalypso +DESTDIR= all: ${SUBDIR} enc-text: libcoding gen-pdu: libcoding -${SUBDIR}: FRC - cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}" +${SUBDIR}: FRC config.defs + cd $@; ${MAKE} ${MFLAGS} + +config.defs: + @echo 'You must run ./configure before make' + @false clean: FRC rm -f a.out core errs for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done install: FRC - mkdir -p ${INSTALL_PREFIX} for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \ - INSTALL_PREFIX=${INSTALL_PREFIX} install); done + DESTDIR=${DESTDIR} install); done FRC: