mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-18 17:25:09 -04:00
Reinstated Makefiles and updated readme.
This commit is contained in:
parent
fcbbf43204
commit
2e001b160d
8 changed files with 337 additions and 30 deletions
31
frontend/Makefile
Normal file
31
frontend/Makefile
Normal file
|
@ -0,0 +1,31 @@
|
|||
# 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.1\"
|
||||
|
||||
CC := gcc
|
||||
INCLUDE := -I/usr/local/include
|
||||
CFLAGS := -g
|
||||
|
||||
prefix := /usr/local
|
||||
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
|
31
frontend/Makefile.bsd
Normal file
31
frontend/Makefile.bsd
Normal file
|
@ -0,0 +1,31 @@
|
|||
# Linux makefile for zint - requires libzint
|
||||
#
|
||||
# make compiles zint
|
||||
# make install copies binary to /usr/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.1\"
|
||||
|
||||
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
|
37
frontend/Makefile.mingw
Normal file
37
frontend/Makefile.mingw
Normal file
|
@ -0,0 +1,37 @@
|
|||
# Linux makefile for zint - requires libzint
|
||||
#
|
||||
# make compiles zint
|
||||
# make install copies binary to /usr/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.1\"
|
||||
|
||||
CC := gcc
|
||||
CFLAGS := -D_WIN32 -O2 -fms-extensions -mms-bitfields -fno-exceptions -fomit-frame-pointer -Wall -I../backend
|
||||
prefix := /mingw
|
||||
bindir := $(prefix)/bin
|
||||
DESTDIR :=
|
||||
|
||||
all: zint zint_static
|
||||
|
||||
%.res:%.rc
|
||||
windres -O coff --input-format=rc -i $< -o $@
|
||||
|
||||
zint: main.c zint.res
|
||||
$(CC) $(CFLAGS) -DZINT_DLL -DPNG_DLL -DZLIB_DLL $(ZINT_VERSION) $? zint.res -o $@ -L../backend -lzint
|
||||
|
||||
zint_static: main.c zint.res
|
||||
$(CC) -static $(CFLAGS) $(ZINT_VERSION) $? zint.res -o $@ -L../backend -lzint -lpng -lz
|
||||
|
||||
.PHONY: install uninstall clean dist
|
||||
|
||||
clean:
|
||||
rm -f zint *.o *.a *~ *.png *.eps *.svg *.log *.exe *.bak *.res
|
||||
|
||||
install:
|
||||
install -D -p zint $(DESTDIR)$(bindir)/zint
|
||||
|
||||
uninstall:
|
||||
rm $(DESTDIR)$(bindir)/zint
|
Loading…
Add table
Add a link
Reference in a new issue