]> git.saurik.com Git - wxWidgets.git/blame - src/zlib/makefile.unx
wxString::Scanf() removed because can't be implemented portably
[wxWidgets.git] / src / zlib / makefile.unx
CommitLineData
c801d85f
KB
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
13WXDIR = ../..
14
15# All common UNIX compiler flags and options are now in
16# this central makefile.
17include $(WXDIR)/src/make.env
18
19ZLIBDIR = $(WXDIR)/utils/zlib
20ZLIBLIB = $(WXDIR)/lib/libzlib$(GUISUFFIX).a
21
22SOURCES = 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
25OBJECTS = $(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
37all: $(OBJDIR) $(ZLIBLIB)
38
39demo:
40
41$(ZLIBLIB): $(OBJECTS)
42 rm -f $@
43 ar $(AROPTIONS) $@ $(OBJECTS)
44 $(RANLIB) $@
45
46motif:
47 $(MAKE) -f makefile.unx GUISUFFIX=_motif GUI=-Dwx_motif GUISUFFIX=_motif DEBUG='$(DEBUG)' OPT='$(OPT)' LDLIBS='$(MOTIFLDLIBS)' XVIEW_LINK=
48
49xview:
50 $(MAKE) -f makefile.unx GUI=-Dwx_xview GUISUFFIX=_ol OPT='$(OPT)' DEBUG='$(DEBUG)'
51
52demo_motif:
53 $(MAKE) -f makefile.unx all test_motif GUI=-Dwx_motif GUISUFFIX=_motif DEBUG='$(DEBUG)' OPT='$(OPT)' LDLIBS='$(MOTIFLDLIBS)' XVIEW_LINK=
54
55demo_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
59hp:
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
64demo_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
114clean_motif:
115 $(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany
116
117clean_ol:
118 $(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany
119
120clean_hp:
121 $(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany
122
123cleanany:
124 rm -f $(OBJECTS) $(OBJDIR)/*.$(OBJSUFF) $(ZLIBLIB) core
125
126wxclean_ol:
127 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx clean_ol
128
129wxclean_motif:
130 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx clean_motif
131
132wxclean_hp:
133 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx clean_hp