Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
10 | reyssat | 1 | # Makefile for the Whirlgif utilities. |
2 | # Comments for the Amiga is kindly supplied by |
||
3 | # Ron Jensen <rjensen@konnections.com> |
||
4 | # If you use Visual C++, all '.o' must be changed to '.obj' |
||
5 | ########################################################### |
||
6 | # Define target names |
||
7 | # |
||
8 | # Win32: |
||
9 | #TARG_WH = whirlgif.exe |
||
10 | # |
||
11 | # Unix, Amiga: |
||
12 | TARG_WH = whirlgif |
||
13 | |||
14 | ########################################################### |
||
15 | # Define install dirs |
||
16 | # |
||
17 | # Win32: perhaps install by hand. |
||
18 | #INSTDIRS = C: |
||
19 | #BINDIR = DOS |
||
20 | # |
||
21 | # Amiga: Install by hand |
||
22 | # Unix: perhaps change according to your flavor. |
||
23 | INSTDIRS = /usr/local |
||
24 | BINDIR = bin |
||
25 | MANDIR = man/cat1 |
||
26 | |||
27 | ########################################################### |
||
28 | # Choose the compiler. |
||
29 | # |
||
30 | # GNU C |
||
31 | #CC = gcc |
||
32 | # Amiga: SASC |
||
33 | # CC = sc |
||
34 | # standard |
||
35 | CC = cc |
||
36 | |||
37 | ########################################################### |
||
38 | # Optimization flags |
||
39 | # |
||
40 | # DJGPP: |
||
41 | #OPTIMIZE= -fcombine-regs -O |
||
42 | # for Amiga's SASC compiler remove Optimization flags. |
||
43 | # standard: |
||
44 | OPTIMIZE = -O |
||
45 | |||
46 | ########################################################### |
||
47 | # Debug flags |
||
48 | # |
||
49 | DEBUG = -g |
||
50 | #DEBUG = -ggdb |
||
51 | |||
52 | ########################################################### |
||
53 | # CFLAGS |
||
54 | # |
||
55 | # If you need <strings.h>, uncomment next line |
||
56 | #STRS_H = -D_USE_STRINGS_H |
||
57 | # If you use DJGPP or Visual C++ uncomment next line |
||
58 | #VIS_GNU_W32 = -D_FOPEN_TXT_OR_BIN |
||
59 | # |
||
60 | # If you use GNUcc and like warnings uncomment next line |
||
61 | # WARNINGS = -Wall |
||
62 | # for the Amiga: |
||
63 | # CFLAGS = DATA=FAR MATH=IEEE CPU=68020 PARAMETERS=BOTH ANSI STRICT NOICONS IGNORE=51 |
||
64 | # standard: |
||
65 | CFLAGS = $(DEBUG) $(OPTIMIZE) $(VIS_GNU_W32) $(STRS_H) $(WARNINGS) |
||
66 | |||
67 | all: $(TARG_WH) |
||
68 | |||
69 | $(TARG_WH): whirlgif.o gifencod.o gifdecod.o |
||
70 | $(CC) $(CFLAGS) -o $(TARG_WH) whirlgif.o gifencod.o gifdecod.o |
||
71 | #for the Amiga: remove above line and use below: |
||
72 | # slink NOICONS from lib:c.o+whirlgif.o+gifencod.o+gifdecod.o to WhirlGif3 LIB LIB:scmieee.lib LIB:sc.lib LIB:amiga.lib |
||
73 | |||
74 | clean: |
||
75 | rm -f $(TARG_WH) *.o |
||
76 | |||
77 | # under DOS/W32 as well as on the Amiga it is probably best to install by hand |
||
78 | # under Unix perhaps change below commands for your flavor and local |
||
79 | # traditions. The install(1) used here is sometimes located in /usr/ucb |
||
80 | |||
81 | install: all |
||
82 | nroff -man whirlgif.1 > $(INSTDIRS)/$(MANDIR)/whirlgif.0 ;\ |
||
83 | install -cs -g bin -m 555 -o bin $(TARG_WH) $(INSTDIRS)/$(BINDIR) |
||
84 | |||
85 | # DEPENDECIES FOLLOW: |
||
86 | gifdecod.o: whirlgif.h gifdecod.c |
||
87 | $(CC) $(CFLAGS) -c gifdecod.c |
||
88 | |||
89 | gifencod.o: whirlgif.h gifencod.c |
||
90 | $(CC) $(CFLAGS) -c gifencod.c |
||
91 | |||
92 | whirlgif.o: whirlgif.h whirlgif.c |
||
93 | $(CC) $(CFLAGS) -c whirlgif.c |