2008-07-14 09:15:55 +12:00
|
|
|
# Linux makefile for zint - requires libzint
|
|
|
|
#
|
|
|
|
# make compiles zint
|
|
|
|
# make install copies binary to /usr/local/bin
|
|
|
|
# make uninstall removes the binary
|
|
|
|
# make clean cleans up a previous compilation and any object or editor files
|
|
|
|
#
|
|
|
|
|
2009-08-06 20:36:01 +12:00
|
|
|
ZINT_VERSION:=-DZINT_VERSION=\"2.2.1\"
|
2008-09-19 02:39:25 +12:00
|
|
|
|
2008-07-14 09:15:55 +12:00
|
|
|
CC := gcc
|
|
|
|
INCLUDE := -I/usr/local/include
|
2008-09-03 08:23:06 +12:00
|
|
|
CFLAGS := -g
|
|
|
|
|
|
|
|
prefix := /usr/local
|
|
|
|
bindir := $(prefix)/bin
|
|
|
|
DESTDIR :=
|
2008-07-14 09:15:55 +12:00
|
|
|
|
|
|
|
zint: main.c
|
2008-09-29 00:19:33 +13:00
|
|
|
$(CC) -Wall $(INCLUDE) $(CFLAGS) $(ZINT_VERSION) -I../backend -L../backend main.c -o zint -lzint
|
2008-07-14 09:15:55 +12:00
|
|
|
|
|
|
|
.PHONY: install uninstall clean dist
|
|
|
|
|
|
|
|
clean:
|
2009-02-22 12:20:41 +13:00
|
|
|
rm -f zint *.o *.a *~ *.png *.eps *.svg *.log
|
2008-07-14 09:15:55 +12:00
|
|
|
|
|
|
|
install:
|
2008-09-03 08:23:06 +12:00
|
|
|
install -D -p zint $(DESTDIR)$(bindir)/zint
|
2008-07-14 09:15:55 +12:00
|
|
|
|
|
|
|
uninstall:
|
2008-09-03 08:23:06 +12:00
|
|
|
rm $(DESTDIR)$(bindir)/zint
|