Date: Sun, 09 Nov 2014 22:10:37 -0400 From: Joseph Mingrone <jrm@ftfl.ca> To: freebsd-ports@freebsd.org Subject: comments for a pmake newb Message-ID: <86a93zpzz6.fsf@gly.ftfl.ca>
next in thread | raw e-mail | index | archive | help
I'm porting a program that uses a simple GNU make file, but I'm thinking about replacing the make file to remove the devel/gmake dependency. I don't foresee many upstream changes that will make this an issue. Is this a bad/good idea? Are there any example ports that do this? My searching didn't turn any up. My simple make file replacement is below. If you have any suggestions to offer, I'm open to criticism. Thanks, Joseph PROG = blah SRCS != echo *.c OBJS = $(SRCS:.c=.o) CFLAGS = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200809L -D_THREAD_SAFE -D_XOPEN_SOURCE=700 -pedantic -std=c11 -Wall INC = -I/usr/local/include LDFLAGS = -L/usr/local/lib LDLIBS = -lX11 .ifmake debug CFLAGS += -DDEBUG -g -O0 .else CFLAGS += -DNDEBUG -O3 .endif ${PROG}: ${OBJS} ${CC} ${CFLAGS} ${LDFLAGS} ${LDLIBS} $(.ALLSRC) -o $(.TARGET) ${OBJS}: ${SRCS} ${CC} -c ${CFLAGS} ${INC} ${SRCS} debug: ${PROG} clean: rm -f ${PROG} *.o *.core
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86a93zpzz6.fsf>