File: Makefile.djgpp

package info (click to toggle)
gif2png 2.2.5-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 360 kB
  • ctags: 288
  • sloc: sh: 1,684; ansic: 1,557; python: 244; makefile: 61
file content (61 lines) | stat: -rw-r--r-- 1,113 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Makefile for gif2png

#required for djgpp, you can also use copy /b go32.exe+gif2png gif2png.exe
#COFF2EXE=coff2exe
COFF2EXE=@echo >/dev/null

PNGINC=/usr/include
PNGLIB=/usr/lib

ZINC=/usr/include
ZLIB=/usr/lib

BINDIR=/usr/bin
MANDIR=/usr/man/man1

INCLUDE=-I$(PNGINC) -I$(ZINC)
LIBS=$(PNGLIB)/libpng.a $(ZLIB)/libz.a

CFLAGS=$(INCLUDE) -g -O -Wall
LDFLAGS=-g

#CFLAGS=$(INCLUDE) -O -Wall
#LDFLAGS=-s

OBJS=gif2png.o gifread.o version.o 437_l1.o memory.o

all: gif2png

install: gif2png
	cp gif2png $(BINDIR)
	cp gif2png.man $(MANDIR)/gif2png.1

uninstall:
	rm -f $(BINDIR)/gif2png $(MANDIR)/gif2png.1

all-lib: libpng zlib all

gif2png: $(OBJS) $(LIBS)
	$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
	$(COFF2EXE) $@

gif2png.o: gif2png.c gif2png.h
gifread.o: gifread.c gif2png.h
memory.o: memory.c gif2png.h

version.o: version.c gif2png.c gifread.c memory.c 437_l1.c gif2png.h
	$(CC) $(CFLAGS) -c version.c -DPNGLIB=\"$(PNGLIB)\" -DZLIB=\"$(ZLIB)\"

tags:  .force
	ctags *.[ch] $(PNGLIB)/*.[ch] $(ZLIB)/*.[ch]

libpng: .force
	cd $(PNGLIB); make

zlib: .force
	cd $(ZLIB); make

.force:

clean:
	rm -f gif2png *.o