From 8d68d5845912154c0035ab716811bbc62e090b5e Mon Sep 17 00:00:00 2001 From: hooper114 Date: Tue, 2 Sep 2008 20:23:06 +0000 Subject: [PATCH] new make process --- frontend/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/Makefile b/frontend/Makefile index ac68f38c..e244c6af 100644 --- a/frontend/Makefile +++ b/frontend/Makefile @@ -8,9 +8,14 @@ CC := gcc INCLUDE := -I/usr/local/include +CFLAGS := -g + +prefix := /usr/local +bindir := $(prefix)/bin +DESTDIR := zint: main.c - $(CC) $(INCLUDE) -g main.c -o zint -lzint + $(CC) $(INCLUDE) $(CFLAGS) -I../backend -L../backend main.c -o zint -lzint .PHONY: install uninstall clean dist @@ -18,7 +23,7 @@ clean: rm -f zint *.o *.a *~ *.png *.eps install: - mv zint /usr/local/bin + install -D -p zint $(DESTDIR)$(bindir)/zint uninstall: - rm /usr/local/bin/zint + rm $(DESTDIR)$(bindir)/zint