source: trunk/gsdl/lib/Makefile@ 120

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
Line 
1###########################################################################
2#
3# Makefile -- Makefile for general C++ libraries
4# Copyright (C) 1999 The New Zealand Digital Library Project
5#
6# PUT COPYRIGHT NOTICE HERE
7#
8###########################################################################
9
10
11AR = ar
12CC = gcc
13CCFLAGS = -g -Wall
14DEFS =
15INCLUDES = -I../packages/mg-1.3d/lib
16RANLIB = ranlib
17
18
19COMPILE = $(CC) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
20
21.SUFFIXES:
22.SUFFIXES: .c .o
23.c.o:
24 $(COMPILE) $<
25
26.SUFFIXES: .cpp .o
27.cpp.o:
28 $(COMPILE) $<
29
30
31HEADERS = \
32 cfgread.h fileutil.h gsdlunicode.h text_t.h \
33 display.h gsdlconf.h site.h
34
35SOURCES = \
36 cfgread.cpp fileutil.cpp text_t.cpp \
37 display.cpp gsdlunicode.cpp
38
39OBJECTS = \
40 cfgread.o fileutil.o text_t.o \
41 display.o gsdlunicode.o
42
43
44all: gsdllib.a
45
46
47GSDLLIBOBJECTS = text_t.o display.o cfgread.o fileutil.o gsdlunicode.o
48
49gsdllib.a: $(GSDLLIBOBJECTS)
50 rm -f gsdllib.a
51 $(AR) cru gsdllib.a $(GSDLLIBOBJECTS)
52 $(RANLIB) gsdllib.a
53
54clean:
55 rm -f $(OBJECTS) gsdllib.a
56
57install:
58
59depend:
60 makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
61
62# DO NOT DELETE
63
64cfgread.o: cfgread.h gsdlconf.h site.h text_t.h
65fileutil.o: fileutil.h text_t.h gsdlconf.h site.h
66text_t.o: text_t.h gsdlconf.h site.h ../packages/mg-1.3d/lib/unitool.h
67display.o: display.h gsdlconf.h site.h text_t.h gsdlunicode.h
68gsdlunicode.o: gsdlunicode.h text_t.h gsdlconf.h site.h
69gsdlunicode.o: ../packages/mg-1.3d/lib/unitool.h fileutil.h
Note: See TracBrowser for help on using the repository browser.