mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
511fadef30
Transfer of version 2.3.2 from CVS repository
32 lines
677 B
Makefile
32 lines
677 B
Makefile
# 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
|
|
#
|
|
|
|
ZINT_VERSION:=-DZINT_VERSION=\"2.3.2\"
|
|
|
|
CC := gcc
|
|
INCLUDE := -I/usr/include
|
|
CFLAGS := -g
|
|
|
|
prefix := /usr
|
|
bindir := $(prefix)/bin
|
|
DESTDIR :=
|
|
|
|
zint: main.c
|
|
$(CC) -Wall $(INCLUDE) $(CFLAGS) $(ZINT_VERSION) -I../backend -L../backend main.c -o zint -lzint
|
|
|
|
.PHONY: install uninstall clean dist
|
|
|
|
clean:
|
|
rm -f zint *.o *.a *~ *.png *.eps *.svg *.log
|
|
|
|
install:
|
|
install -D -p zint $(DESTDIR)$(bindir)/zint
|
|
|
|
uninstall:
|
|
rm $(DESTDIR)$(bindir)/zint
|