Index: Makefile ================================================================== --- Makefile +++ Makefile @@ -9,16 +9,16 @@ options: @echo build options: @echo "CC = ${CC}" -.c.o: - @echo CC $< - @${CC} -c $< - exposurses: ${OBJ} @echo CC -o $@ - @${CC} -o $@ ${OBJ} ${LDFLAGS} + @${CC} -s ${LIBS} ${SRC} -o $@ + +debug: + @echo "Building with debug symbols" + @${CC} -g ${LIBS} ${SRC} -o exposurses clean: @echo cleaning @rm -f exposurses ${OBJ} Index: config.mk ================================================================== --- config.mk +++ config.mk @@ -3,13 +3,9 @@ # paths PREFIX = /usr/local MANPREFIX = ${PREFIX}/share/man # includes and libs -#INCS = -I. -I/usr/include LIBS=-lmenu -lcurses -lm -# flags -LDFLAGS = -s ${LIBS} - # compiler and linker CC = cc