6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile for tree library and example (UNIX).
11 # Change the WXDIR directory, and CPPFLAGS and LDFLAGS, for your system.
15 # All common UNIX compiler flags and options are now in
16 # this central makefile.
17 include $(WXDIR)/src/make.env
19 ZLIBDIR = $(WXDIR)/utils/zlib
20 ZLIBLIB = $(WXDIR)/lib/libzlib$(GUISUFFIX).a
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)
37 all: $(OBJDIR) $(ZLIBLIB)
41 $(ZLIBLIB): $(OBJECTS)
43 ar $(AROPTIONS) $@ $(OBJECTS)
47 $(MAKE) -f makefile.unx GUISUFFIX=_motif GUI=-Dwx_motif GUISUFFIX=_motif DEBUG='$(DEBUG)' OPT='$(OPT)' LDLIBS='$(MOTIFLDLIBS)' XVIEW_LINK=
50 $(MAKE) -f makefile.unx GUI=-Dwx_xview GUISUFFIX=_ol OPT='$(OPT)' DEBUG='$(DEBUG)'
53 $(MAKE) -f makefile.unx all test_motif GUI=-Dwx_motif GUISUFFIX=_motif DEBUG='$(DEBUG)' OPT='$(OPT)' LDLIBS='$(MOTIFLDLIBS)' XVIEW_LINK=
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)'
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' \
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' \
72 $(OBJDIR)/adler32.$(OBJSUFF): adler32.c
73 $(CC) -c $(CPPFLAGS) -o $@ adler32.c
75 $(OBJDIR)/deflate.$(OBJSUFF): deflate.c
76 $(CC) -c $(CPPFLAGS) -o $@ deflate.c
78 $(OBJDIR)/infblock.$(OBJSUFF): infblock.c
79 $(CC) -c $(CPPFLAGS) -o $@ infblock.c
81 $(OBJDIR)/inflate.$(OBJSUFF): inflate.c
82 $(CC) -c $(CPPFLAGS) -o $@ inflate.c
84 $(OBJDIR)/zutil.$(OBJSUFF): zutil.c
85 $(CC) -c $(CPPFLAGS) -o $@ zutil.c
87 $(OBJDIR)/compress.$(OBJSUFF): compress.c
88 $(CC) -c $(CPPFLAGS) -o $@ compress.c
90 $(OBJDIR)/infcodes.$(OBJSUFF): infcodes.c
91 $(CC) -c $(CPPFLAGS) -o $@ infcodes.c
93 $(OBJDIR)/inftrees.$(OBJSUFF): inftrees.c
94 $(CC) -c $(CPPFLAGS) -o $@ inftrees.c
96 $(OBJDIR)/trees.$(OBJSUFF): trees.c
97 $(CC) -c $(CPPFLAGS) -o $@ trees.c
99 $(OBJDIR)/crc32.$(OBJSUFF): crc32.c
100 $(CC) -c $(CPPFLAGS) -o $@ crc32.c
102 $(OBJDIR)/gzio.$(OBJSUFF): gzio.c
103 $(CC) -c $(CPPFLAGS) -o $@ gzio.c
105 $(OBJDIR)/inffast.$(OBJSUFF): inffast.c
106 $(CC) -c $(CPPFLAGS) -o $@ inffast.c
108 $(OBJDIR)/infutil.$(OBJSUFF): infutil.c
109 $(CC) -c $(CPPFLAGS) -o $@ infutil.c
111 $(OBJDIR)/uncompr.$(OBJSUFF): uncompr.c
112 $(CC) -c $(CPPFLAGS) -o $@ uncompr.c
115 $(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany
118 $(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany
121 $(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany
124 rm -f $(OBJECTS) $(OBJDIR)/*.$(OBJSUFF) $(ZLIBLIB) core
127 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx clean_ol
130 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx clean_motif
133 cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx clean_hp