summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile12
-rw-r--r--config.mk2
2 files changed, 7 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 874d6c5..24aa1d3 100644
--- a/Makefile
+++ b/Makefile
@@ -11,19 +11,19 @@ all: options gramscii
options:
@echo "-+- build options -+-"
- @echo "PREFIX = $(PREFIX)"
- @echo "CFLAGS = $(CFLAGS)"
- @echo "LDFLAGS = $(LDFLAGS)"
- @echo "CC = $(CC)"
+ @echo "PREFIX = ${PREFIX}"
+ @echo "CFLAGS = ${CFLAGS}"
+ @echo "LDFLAGS = ${LDFLAGS}"
+ @echo "CC = ${CC}"
@echo "-+-+-+-+-+-+-+-+-+-+-"
gramscii: ${SRC} ${INC}
- $(CC) $(CFLAGS) -o gramscii ${SRC}
+ ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${SRC}
clean:
@echo cleaning
- @rm -f $(SRC:.c=) gramscii
+ @rm -f gramscii
install: all
@echo installing executable to ${DESTDIR}${BINDIR}
diff --git a/config.mk b/config.mk
index 2ea9816..ee10a0b 100644
--- a/config.mk
+++ b/config.mk
@@ -4,4 +4,4 @@ BINDIR = ${PREFIX}/bin
MANDIR = ${PREFIX}/share/man
CFLAGS = -O3 -std=c90 -pedantic -Wall
-CC = cc
+#CC = cc