]> git.saurik.com Git - wxWidgets.git/blob - utils/Install/sfxzip/makefile
fix for wxFrame's last focus bug (finally?)
[wxWidgets.git] / utils / Install / sfxzip / makefile
1 #==============================================================================
2 # Makefile for UnZip, UnZipSFX and fUnZip: Unix and MS-DOS ("real" makes only)
3 # Version: 5.4 19 November 1998
4 #==============================================================================
5
6
7 # INSTRUCTIONS (such as they are):
8 #
9 # "make sunos" -- makes UnZip in current directory on a generic SunOS 4.x Sun
10 # "make list" -- lists all supported systems (targets)
11 # "make help" -- provides pointers on what targets to try if problems occur
12 # "make wombat" -- chokes and dies if you haven't added the specifics for your
13 # Wombat 68000 (or whatever) to the systems list
14 #
15 # CF are flags for the C compiler. LF are flags for the loader. LF2 are more
16 # flags for the loader, if they need to be at the end of the line instead of at
17 # the beginning (for example, some libraries). FL and FL2 are the corre-
18 # sponding flags for fUnZip. LOCAL_UNZIP is an environment variable that can
19 # be used to add default C flags to your compile without editing the Makefile
20 # (e.g., -DDEBUG_STRUC, or -FPi87 on PCs using Microsoft C).
21 #
22 # Some versions of make do not define the macro "$(MAKE)"; this is rare, but
23 # if things don't work, try using "make" instead of "$(MAKE)" in your system's
24 # makerule. Or try adding the following line to your .login file:
25 # setenv MAKE "make"
26 # (That never works--makes that are too stupid to define MAKE are also too
27 # stupid to look in the environment--but try it anyway for kicks. :-) )
28 #
29 # Memcpy and memset are provided for those systems that don't have them; they
30 # are in fileio.c and will be used if -DZMEM is included in CF. These days
31 # almost all systems have them.
32 #
33 # Be sure to test your new UnZip (and UnZipSFX and fUnZip); successful compila-
34 # tion does not always imply a working program.
35
36
37 #####################
38 # MACRO DEFINITIONS #
39 #####################
40
41 # Defaults most systems use (use LOCAL_UNZIP in environment to add flags,
42 # such as -DDOSWILD).
43
44 # UnZip flags
45 CC = cc# try using "gcc" target rather than changing this (CC and LD
46 LD = $(CC)# must match, else "unresolved symbol: ___main" is possible)
47 AS = as
48 LOC = $(LOCAL_UNZIP)
49 AF = $(LOC)
50 CF = -O -g -I. -I.. -I../inczip $(LOC) -I/usr/local//include -I/usr/X11R6/include -I/usr/local/lib/glib/include -DSTRICT -D__WXGTK__ -DGTK_NO_CHECK_CASTS -D_REENTRANT -D_IODBC_ -Wall
51 LF = -o sfx -L/usr/local/lib -L/usr/X11R6/lib -L/usr -lwx_gtk -lpng -ljpeg -lstdc++ -lgcc -lc_r -lgtk -lgdk -lgmodule -lglib -lXext -lX11 -lm -lgthread
52 LF2 = -s
53
54 # general-purpose stuff
55 #CP = cp
56 CP = ln
57 LN = ln
58 RM = rm -f
59 CHMOD = chmod
60 BINPERMS = 755
61 MANPERMS = 644
62 STRIP = strip
63 E =
64 O = .o
65 M = unix
66 SHELL = /bin/sh
67
68 # defaults for crc32 stuff and system dependent headers
69 CRC32 = crc32
70
71 # object files
72 OBJS1 = unzip$O $(CRC32)$O crctab$O crypt$O envargs$O explode$O
73 OBJS2 = extract$O fileio$O globals$O inflate$O list$O match$O
74 OBJS3 = process$O ttyio$O unreduce$O unshrink$O zipinfo$O
75 OBJS = $(OBJS1) $(OBJS2) $(OBJS3) $M$O install$O wxmain$O instsup$O
76 UNZIP_H = ../inczip/unzip.h ../inczip/unzpriv.h ../inczip/globals.h
77
78 # installation
79 # (probably can change next two to `install' and `install -d' if you have it)
80 INSTALL = cp
81 INSTALL_D = mkdir -p
82
83 ###############################################
84 # BASIC COMPILE INSTRUCTIONS AND DEPENDENCIES #
85 ###############################################
86
87 # this is for GNU make; comment out and notify zip-bugs if it causes errors
88 .SUFFIXES: .c .o .obj .pic.o
89
90 # yes, we should be able to use the $O macro to combine these two, but it
91 # fails on some brain-damaged makes (e.g., AIX's)...no big deal
92 .c.o:
93 $(CC) -c $(CF) $*.c
94
95 .c.obj:
96 $(CC) -c $(CF) $*.c
97
98 .c.pic.o:
99 $(CC) -c $(CF) -o $@ $*.c
100
101 all: sfx
102
103
104 # EDIT HERE FOR PARALLEL MAKES on Sequent (and others?)--screws up MS-DOS
105 # make utilities if default: change "unzip$E:" to "unzip$E:&"
106
107 sfx$E: $(OBJS) # add `&' for parallel makes
108 $(LD) $(LF) $(OBJS)
109
110 crc32$O: crc32.c $(UNZIP_H) ../inczip/zip.h
111 crctab$O: crctab.c $(UNZIP_H) ../inczip/zip.h
112 crypt$O: crypt.c $(UNZIP_H) ../inczip/zip.h ../inczip/crypt.h ../inczip/ttyio.h
113 envargs$O: envargs.c $(UNZIP_H)
114 explode$O: explode.c $(UNZIP_H)
115 extract$O: extract.c $(UNZIP_H) ../inczip/crypt.h
116 fileio$O: fileio.c $(UNZIP_H) ../inczip/crypt.h ../inczip/ttyio.h ../inczip/ebcdic.h
117 funzip$O: funzip.c $(UNZIP_H) ../inczip/crypt.h ../inczip/ttyio.h ../inczip/tables.h
118 globals$O: globals.c $(UNZIP_H)
119 inflate$O: inflate.c ../inczip/inflate.h $(UNZIP_H)
120 list$O: list.c $(UNZIP_H)
121 match$O: match.c $(UNZIP_H)
122 process$O: process.c $(UNZIP_H)
123 ttyio$O: ttyio.c $(UNZIP_H) ../inczip/zip.h ../inczip/crypt.h ../inczip/ttyio.h
124 unreduce$O: unreduce.c $(UNZIP_H)
125 unshrink$O: unshrink.c $(UNZIP_H)
126 unzip$O: unzip.c $(UNZIP_H) ../inczip/crypt.h ../inczip/version.h ../inczip/consts.h
127 zipinfo$O: zipinfo.c $(UNZIP_H)
128
129 unix$O: unix.c $(UNZIP_H) ../inczip/version.h # Unix only
130 $(CC) -c $(CF) unix.c
131
132 install$O: ../install.c
133 $(CC) -c $(CF) ../install.c
134
135 wxmain$O: ../wxmain.cpp
136 $(CC) -c $(CF) ../wxmain.cpp
137
138 instsup$O: ../instsup.cpp
139 $(CC) -c $(CF) ../instsup.cpp
140
141
142