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 |
|
---|
10 |
|
---|
11 | ODIN32_TOOLS = ..\..\bin
|
---|
12 | !include ../../../makefile.inc
|
---|
13 |
|
---|
14 |
|
---|
15 | AR = ilib /nologo
|
---|
16 | CFLAGS = $(CFLAGS) -Wcnd- -Ge+ -Tx+
|
---|
17 | LD = $(LD) $(LDFLAGS) -Ge+
|
---|
18 |
|
---|
19 | LIBS = gdicc.lib
|
---|
20 |
|
---|
21 | all: gdicc.lib gddemo.exe giftogd.exe webgif.exe
|
---|
22 |
|
---|
23 |
|
---|
24 | gdicc.lib: gd.obj gdfontt.obj gdfonts.obj gdfontmb.obj gdfontl.obj gdfontg.obj \
|
---|
25 | gd.h gdfontt.h gdfonts.h gdfontmb.h gdfontl.h gdfontg.h
|
---|
26 | @$(RM) $@
|
---|
27 | $(AR) $@ +gd.obj +gdfontt.obj +gdfonts.obj +gdfontmb.obj \
|
---|
28 | +gdfontl.obj +gdfontg.obj, NUL
|
---|
29 |
|
---|
30 | gddemo.exe: gddemo.obj gdicc.lib gd.h gdfonts.h gdfontl.h
|
---|
31 | $(LD) gddemo.obj -Fe$@ $(LIBS)
|
---|
32 |
|
---|
33 | giftogd.exe: giftogd.obj gdicc.lib gd.h
|
---|
34 | $(LD) giftogd.obj -Fe$@ $(LIBS)
|
---|
35 |
|
---|
36 | webgif.exe: webgif.obj gdicc.lib gd.h
|
---|
37 | $(LD) webgif.obj -Fe$@ $(LIBS)
|
---|
38 |
|
---|
39 | dep:
|
---|
40 | @nmake /nologo -f makefile NODEP=1 dep
|
---|
41 |
|
---|
42 | clean:
|
---|
43 | @$(RM) *.obj *.exe *.map gdicc.lib cset*.pch
|
---|
44 |
|
---|
45 | #
|
---|
46 | # Include the .depend file.
|
---|
47 | # If the depend file don't exists we'll complain about it.
|
---|
48 | #
|
---|
49 | !ifndef NODEP
|
---|
50 | ! if [$(EXISTS) .depend] == 0
|
---|
51 | ! include .depend
|
---|
52 | ! else
|
---|
53 | ! if [$(ECHO) .depend doesn't exist]
|
---|
54 | ! endif
|
---|
55 | ! endif
|
---|
56 | !endif
|
---|
57 |
|
---|