source: trunk/tools/database/gd/Makefile.gcc@ 4653

Last change on this file since 4653 was 4332, checked in by bird, 25 years ago

Corrected inclusion of .depend and for some defined PDWIN32_INCLUDE.

File size: 1.8 KB
Line 
1#Depending on your system, you will need to modify this makefile.
2
3#If you do not have gcc, change the setting for CC, but you must
4#use an ANSI standard C compiler (NOT the old SunOS 4.1.3 cc
5#compiler; get gcc if you are still using it).
6
7#If the ar command fails on your system, consult the ar manpage
8#for your system.
9
10PDWIN32_INCLUDE = ..\..\..\include
11PDWIN32_TOOLS = ..\..\bin
12!include $(PDWIN32_INCLUDE)\pdwin32.mk
13
14CC=gcc
15AR=ar
16CFLAGS=-O
17
18LIBS = -lgdgcc -lm
19
20.c.$(OBJ):
21 $(CC) -c $(CFLAGS) $<
22
23!ifndef OMF
24OMF=0
25!endif
26
27#
28# gcc defines
29#
30CC =gcc
31LD =gcc
32
33!if $(OMF) == 0
34O = o
35A = a
36AR = ar
37CFZOMF =
38!else
39O = gobj
40A = lib
41AR = emxomfar
42CFZOMF = -Zomf
43!endif
44
45!ifndef DEBUG
46CFLAGS = $(CFZOMF) -Zmap -Zmt -mprobe -Wall -s -O
47!else
48CFLAGS = $(CFZOMF) -Zmap -Zmt -mprobe -Wall -g
49!endif
50LDFLAGS = $(CFZOMF)
51
52.c.$(O):
53 $(CC) -c $(CFLAGS) $< -o $@
54
55
56all: gdgcc.$(A) gddemo.exe giftogd.exe webgif.exe
57
58gdgcc.$(A): gd.$(O) gdfontt.$(O) gdfonts.$(O) gdfontmb.$(O) gdfontl.$(O) gdfontg.$(O) \
59 gd.h gdfontt.h gdfonts.h gdfontmb.h gdfontl.h gdfontg.h
60 @$(RM) gdgcc.$(A)
61 $(AR) rc gdgcc.$(A) gd.$(O) gdfontt.$(O) gdfonts.$(O) gdfontmb.$(O) \
62 gdfontl.$(O) gdfontg.$(O)
63
64gddemo.exe: gddemo.$(O) gdgcc.$(A) gd.h gdfonts.h gdfontl.h
65 $(LD) $(LDFLAGS) gddemo.$(O) -o $@ $(LIBS)
66
67giftogd.exe: giftogd.$(O) gdgcc.$(A) gd.h
68 $(LD) $(LDFLAGS) giftogd.$(O) -o $@ $(LIBS)
69
70webgif.exe: webgif.$(O) gdgcc.$(A) gd.h
71 $(LD) $(LDFLAGS) webgif.$(O) -o $@ $(LIBS)
72
73dep:
74 @nmake /nologo -f makefile NODEP=1 dep
75
76clean:
77 -@$(RM) *.$(O) *.$(A) *.exe *.map
78
79#
80# Include the .depend file.
81# If the depend file don't exists we'll complain about it.
82#
83!ifndef NODEP
84! if [$(EXISTS) .depend] == 0
85! include .depend
86! else
87! if [$(ECHO) .depend doesn't exist]
88! endif
89! endif
90!endif
91
Note: See TracBrowser for help on using the repository browser.