]> git.saurik.com Git - wxWidgets.git/blob - src/zlib/makefile.unx
some clean up of the code
[wxWidgets.git] / src / zlib / makefile.unx
1 #
2 # File: makefile.unx
3 # Author: Julian Smart
4 # Created: 1993
5 # Updated:
6 # Copyright: (c) 1993, AIAI, University of Edinburgh
7 #
8 # "%W% %G%"
9 #
10 # Makefile for tree library and example (UNIX).
11 # Change the WXDIR directory, and CPPFLAGS and LDFLAGS, for your system.
12
13 WXDIR = ../..
14
15 # All common UNIX compiler flags and options are now in
16 # this central makefile.
17 include $(WXDIR)/src/make.env
18
19 ZLIBDIR = $(WXDIR)/utils/zlib
20 ZLIBLIB = $(WXDIR)/lib/libzlib$(GUISUFFIX).a
21
22 SOURCES = adler32.c deflate.c infblock.c inflate.c zutil.c compress.c \
23 infcodes.c inftrees.c trees.c \
24 crc32.c gzio.c inffast.c infutil.c uncompr.c
25 OBJECTS = $(OBJDIR)/adler32.$(OBJSUFF) $(OBJDIR)/deflate.$(OBJSUFF) \
26 $(OBJDIR)/infblock.$(OBJSUFF) $(OBJDIR)/inflate.$(OBJSUFF) \
27 $(OBJDIR)/zutil.$(OBJSUFF) $(OBJDIR)/trees.$(OBJSUFF) \
28 $(OBJDIR)/compress.$(OBJSUFF) $(OBJDIR)/infcodes.$(OBJSUFF) \
29 $(OBJDIR)/inftrees.$(OBJSUFF) $(OBJDIR)/crc32.$(OBJSUFF) \
30 $(OBJDIR)/gzio.$(OBJSUFF) $(OBJDIR)/inffast.$(OBJSUFF) \
31 $(OBJDIR)/infutil.$(OBJSUFF) $(OBJDIR)/uncompr.$(OBJSUFF)
32
33 # Default
34
35 .SUFFIXES:
36
37 all: $(OBJDIR) $(ZLIBLIB)
38
39 demo:
40
41 $(ZLIBLIB): $(OBJECTS)
42 rm -f $@
43 ar $(AROPTIONS) $@ $(OBJECTS)
44 $(RANLIB) $@
45
46 motif:
47 $(MAKE) -f makefile.unx GUISUFFIX=_motif GUI=-Dwx_motif GUISUFFIX=_motif DEBUG='$(DEBUG)' OPT='$(OPT)' LDLIBS='$(MOTIFLDLIBS)' XVIEW_LINK=
48
49 xview:
50 $(MAKE) -f makefile.unx GUI=-Dwx_xview GUISUFFIX=_ol OPT='$(OPT)' DEBUG='$(DEBUG)'
51
52 demo_motif:
53 $(MAKE) -f makefile.unx all test_motif GUI=-Dwx_motif GUISUFFIX=_motif DEBUG='$(DEBUG)' OPT='$(OPT)' LDLIBS='$(MOTIFLDLIBS)' XVIEW_LINK=
54
55 demo_ol:
56 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx xview OPT='$(OPT)' DEBUG='$(DEBUG)'
57 $(MAKE) -f makefile.unx all test_ol GUI=-Dwx_xview OPT='$(OPT)' DEBUG='$(DEBUG)'
58
59 hp:
60 $(MAKE) -f makefile.unx GUI=-Dwx_motif GUISUFFIX=_hp CC=CC DEBUG='$(DEBUG)' DEBUGFLAGS='-g' OPT='' WARN='-w' \
61 XINCLUDE='$(HPXINCLUDE)' XLIB='$(HPXLIB)' XVIEW_LINK='' CCLEX='cc' \
62 LDLIBS='$(HPLDLIBS)'
63
64 demo_hp:
65 $(MAKE) -f makefile.unx all test_hp GUI=-Dwx_motif GUISUFFIX=_hp CC=CC DEBUG='$(DEBUG)' DEBUGFLAGS='-g' OPT='' WARN='-w' \
66 XINCLUDE='$(HPXINCLUDE)' XLIB='$(HPXLIB)' XVIEW_LINK='' CCLEX='cc' \
67 LDLIBS='$(HPLDLIBS)'
68
69 $(OBJDIR):
70 mkdir $(OBJDIR)
71
72 $(OBJDIR)/adler32.$(OBJSUFF): adler32.c
73 $(CC) -c $(CPPFLAGS) -o $@ adler32.c
74
75 $(OBJDIR)/deflate.$(OBJSUFF): deflate.c
76 $(CC) -c $(CPPFLAGS) -o $@ deflate.c
77
78 $(OBJDIR)/infblock.$(OBJSUFF): infblock.c
79 $(CC) -c $(CPPFLAGS) -o $@ infblock.c
80
81 $(OBJDIR)/inflate.$(OBJSUFF): inflate.c
82 $(CC) -c $(CPPFLAGS) -o $@ inflate.c
83
84 $(OBJDIR)/zutil.$(OBJSUFF): zutil.c
85 $(CC) -c $(CPPFLAGS) -o $@ zutil.c
86
87 $(OBJDIR)/compress.$(OBJSUFF): compress.c
88 $(CC) -c $(CPPFLAGS) -o $@ compress.c
89
90 $(OBJDIR)/infcodes.$(OBJSUFF): infcodes.c
91 $(CC) -c $(CPPFLAGS) -o $@ infcodes.c
92
93 $(OBJDIR)/inftrees.$(OBJSUFF): inftrees.c
94 $(CC) -c $(CPPFLAGS) -o $@ inftrees.c
95
96 $(OBJDIR)/trees.$(OBJSUFF): trees.c
97 $(CC) -c $(CPPFLAGS) -o $@ trees.c
98
99 $(OBJDIR)/crc32.$(OBJSUFF): crc32.c
100 $(CC) -c $(CPPFLAGS) -o $@ crc32.c
101
102 $(OBJDIR)/gzio.$(OBJSUFF): gzio.c
103 $(CC) -c $(CPPFLAGS) -o $@ gzio.c
104
105 $(OBJDIR)/inffast.$(OBJSUFF): inffast.c
106 $(CC) -c $(CPPFLAGS) -o $@ inffast.c
107
108 $(OBJDIR)/infutil.$(OBJSUFF): infutil.c
109 $(CC) -c $(CPPFLAGS) -o $@ infutil.c
110
111 $(OBJDIR)/uncompr.$(OBJSUFF): uncompr.c
112 $(CC) -c $(CPPFLAGS) -o $@ uncompr.c
113
114 clean_motif:
115 $(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany
116
117 clean_ol:
118 $(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany
119
120 clean_hp:
121 $(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany
122
123 cleanany:
124 rm -f $(OBJECTS) $(OBJDIR)/*.$(OBJSUFF) $(ZLIBLIB) core
125
126 wxclean_ol:
127 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx clean_ol
128
129 wxclean_motif:
130 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx clean_motif
131
132 wxclean_hp:
133 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx clean_hp