Last change
on this file since 120 was 114, checked in by rjmcnab, 25 years ago |
Made the source more portable.
|
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.5 KB
|
Rev | Line | |
---|
[49] | 1 | ###########################################################################
|
---|
| 2 | #
|
---|
[112] | 3 | # Makefile -- Makefile for general C++ libraries
|
---|
[100] | 4 | # Copyright (C) 1999 The New Zealand Digital Library Project
|
---|
[49] | 5 | #
|
---|
[100] | 6 | # PUT COPYRIGHT NOTICE HERE
|
---|
[49] | 7 | #
|
---|
| 8 | ###########################################################################
|
---|
| 9 |
|
---|
[114] | 10 |
|
---|
[49] | 11 | AR = ar
|
---|
| 12 | CC = gcc
|
---|
[112] | 13 | CCFLAGS = -g -Wall
|
---|
| 14 | DEFS =
|
---|
| 15 | INCLUDES = -I../packages/mg-1.3d/lib
|
---|
[49] | 16 | RANLIB = ranlib
|
---|
| 17 |
|
---|
[114] | 18 |
|
---|
[112] | 19 | COMPILE = $(CC) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
|
---|
[114] | 20 |
|
---|
[49] | 21 | .SUFFIXES:
|
---|
| 22 | .SUFFIXES: .c .o
|
---|
| 23 | .c.o:
|
---|
| 24 | $(COMPILE) $<
|
---|
| 25 |
|
---|
| 26 | .SUFFIXES: .cpp .o
|
---|
| 27 | .cpp.o:
|
---|
| 28 | $(COMPILE) $<
|
---|
| 29 |
|
---|
[114] | 30 |
|
---|
[112] | 31 | HEADERS = \
|
---|
| 32 | cfgread.h fileutil.h gsdlunicode.h text_t.h \
|
---|
| 33 | display.h gsdlconf.h site.h
|
---|
[49] | 34 |
|
---|
[112] | 35 | SOURCES = \
|
---|
| 36 | cfgread.cpp fileutil.cpp text_t.cpp \
|
---|
| 37 | display.cpp gsdlunicode.cpp
|
---|
| 38 |
|
---|
| 39 | OBJECTS = \
|
---|
| 40 | cfgread.o fileutil.o text_t.o \
|
---|
| 41 | display.o gsdlunicode.o
|
---|
| 42 |
|
---|
[114] | 43 |
|
---|
[94] | 44 | all: gsdllib.a
|
---|
[49] | 45 |
|
---|
[112] | 46 |
|
---|
| 47 | GSDLLIBOBJECTS = text_t.o display.o cfgread.o fileutil.o gsdlunicode.o
|
---|
| 48 |
|
---|
| 49 | gsdllib.a: $(GSDLLIBOBJECTS)
|
---|
[49] | 50 | rm -f gsdllib.a
|
---|
[112] | 51 | $(AR) cru gsdllib.a $(GSDLLIBOBJECTS)
|
---|
[49] | 52 | $(RANLIB) gsdllib.a
|
---|
| 53 |
|
---|
| 54 | clean:
|
---|
| 55 | rm -f $(OBJECTS) gsdllib.a
|
---|
| 56 |
|
---|
[94] | 57 | install:
|
---|
| 58 |
|
---|
[49] | 59 | depend:
|
---|
| 60 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
|
---|
| 61 |
|
---|
| 62 | # DO NOT DELETE
|
---|
| 63 |
|
---|
[114] | 64 | cfgread.o: cfgread.h gsdlconf.h site.h text_t.h
|
---|
| 65 | fileutil.o: fileutil.h text_t.h gsdlconf.h site.h
|
---|
| 66 | text_t.o: text_t.h gsdlconf.h site.h ../packages/mg-1.3d/lib/unitool.h
|
---|
| 67 | display.o: display.h gsdlconf.h site.h text_t.h gsdlunicode.h
|
---|
| 68 | gsdlunicode.o: gsdlunicode.h text_t.h gsdlconf.h site.h
|
---|
| 69 | gsdlunicode.o: ../packages/mg-1.3d/lib/unitool.h fileutil.h
|
---|
Note:
See
TracBrowser
for help on using the repository browser.