zint-barcode-generator/frontend/Makefile

32 lines
672 B
Makefile
Raw Normal View History

2008-07-13 17:15:55 -04: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
#
2008-09-24 05:44:16 -04:00
ZINT_VERSION:=-DZINT_VERSION=\"1.99.1\"
2008-07-13 17:15:55 -04:00
CC := gcc
INCLUDE := -I/usr/local/include
2008-09-02 16:23:06 -04:00
CFLAGS := -g
prefix := /usr/local
bindir := $(prefix)/bin
DESTDIR :=
2008-07-13 17:15:55 -04:00
zint: main.c
2008-09-24 04:59:39 -04:00
$(CC) $(INCLUDE) $(CFLAGS) $(ZINT_VERSION) -I../backend -L../backend main.c -o zint -lzint
2008-07-13 17:15:55 -04:00
.PHONY: install uninstall clean dist
clean:
rm -f zint *.o *.a *~ *.png *.eps
install:
2008-09-02 16:23:06 -04:00
install -D -p zint $(DESTDIR)$(bindir)/zint
2008-07-13 17:15:55 -04:00
uninstall:
2008-09-02 16:23:06 -04:00
rm $(DESTDIR)$(bindir)/zint