File: Makefile.bcc

package info (click to toggle)
gif2png 0.6-1
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 152 kB
  • ctags: 137
  • sloc: ansic: 1,319; makefile: 62; sh: 17
file content (34 lines) | stat: -rw-r--r-- 679 bytes parent folder | download
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

# Makefile for gif2png with Borland C++

PNGLIB=libpng-0.81
ZLIB=zlib-0.95

CC=bcc
WILDARGS=d:/bc45/lib/16bit/wildargs.obj


LIBS=$(PNGLIB)/libpng.lib $(ZLIB)/zlib.lib
INCLUDE=-I$(PNGLIB) -I$(ZLIB)

CFLAGS=$(INCLUDE) -O2 -Z -ml -DTMPFILE
LDFLAGS=-ml

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

all: gif2png.exe

gif2png.exe: $(OBJS) $(LIBS)
	echo $(OBJS) >link.opt
	echo $(LIBS) >>link.opt
	echo $(WILDARGS) >>link.opt
	$(CC) $(LDFLAGS) -e$@ @link.opt
	del link.opt

gif2png.obj: gif2png.c gif2png.h
gifread.obj: gifread.c gif2png.h
memory.obj: memory.c gif2png.h

version.obj: version.c
	$(CC) $(CFLAGS) -DPNGLIB="$(PNGLIB)" -DZLIB="$(ZLIB)" -c version.c