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

Last change on this file since 10367 was 4712, checked in by bird, 25 years ago

New makefile style.

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
10ODIN32_TOOLS = ..\..\bin
11!include ../../../makefile.inc
12
13CC=gcc
14AR=ar
15CFLAGS=-O
16
17LIBS = -lgdgcc -lm
18
19.c.$(OBJ):
20 $(CC) -c $(CFLAGS) $<
21
22!ifndef OMF
23OMF=0
24!endif
25
26#
27# gcc defines
28#
29CC =gcc
30LD =gcc
31
32!if $(OMF) == 0
33O = o
34A = a
35AR = ar
36CFZOMF =
37!else
38O = gobj
39A = lib
40AR = emxomfar
41CFZOMF = -Zomf
42!endif
43
44!ifndef DEBUG
45CFLAGS = $(CFZOMF) -Zmap -Zmt -mprobe -Wall -s -O
46!else
47CFLAGS = $(CFZOMF) -Zmap -Zmt -mprobe -Wall -g
48!endif
49LDFLAGS = $(CFZOMF)
50
51.c.$(O):
52 $(CC) -c $(CFLAGS) $< -o $@
53
54
55all: gdgcc.$(A) gddemo.exe giftogd.exe webgif.exe
56
57gdgcc.$(A): gd.$(O) gdfontt.$(O) gdfonts.$(O) gdfontmb.$(O) gdfontl.$(O) gdfontg.$(O) \
58 gd.h gdfontt.h gdfonts.h gdfontmb.h gdfontl.h gdfontg.h
59 @$(RM) gdgcc.$(A)
60 $(AR) rc gdgcc.$(A) gd.$(O) gdfontt.$(O) gdfonts.$(O) gdfontmb.$(O) \
61 gdfontl.$(O) gdfontg.$(O)
62
63gddemo.exe: gddemo.$(O) gdgcc.$(A) gd.h gdfonts.h gdfontl.h
64 $(LD) $(LDFLAGS) gddemo.$(O) -o $@ $(LIBS)
65
66giftogd.exe: giftogd.$(O) gdgcc.$(A) gd.h
67 $(LD) $(LDFLAGS) giftogd.$(O) -o $@ $(LIBS)
68
69webgif.exe: webgif.$(O) gdgcc.$(A) gd.h
70 $(LD) $(LDFLAGS) webgif.$(O) -o $@ $(LIBS)
71
72dep:
73 @nmake /nologo -f makefile NODEP=1 dep
74
75clean:
76 -@$(RM) *.$(O) *.$(A) *.exe *.map
77
78#
79# Include the .depend file.
80# If the depend file don't exists we'll complain about it.
81#
82!ifndef NODEP
83! if [$(EXISTS) .depend] == 0
84! include .depend
85! else
86! if [$(ECHO) .depend doesn't exist]
87! endif
88! endif
89!endif
90
Note: See TracBrowser for help on using the repository browser.