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
RevLine 
[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]11AR = ar
12CC = gcc
[112]13CCFLAGS = -g -Wall
14DEFS =
15INCLUDES = -I../packages/mg-1.3d/lib
[49]16RANLIB = ranlib
17
[114]18
[112]19COMPILE = $(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]31HEADERS = \
32 cfgread.h fileutil.h gsdlunicode.h text_t.h \
33 display.h gsdlconf.h site.h
[49]34
[112]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
[114]43
[94]44all: gsdllib.a
[49]45
[112]46
47GSDLLIBOBJECTS = text_t.o display.o cfgread.o fileutil.o gsdlunicode.o
48
49gsdllib.a: $(GSDLLIBOBJECTS)
[49]50 rm -f gsdllib.a
[112]51 $(AR) cru gsdllib.a $(GSDLLIBOBJECTS)
[49]52 $(RANLIB) gsdllib.a
53
54clean:
55 rm -f $(OBJECTS) gsdllib.a
56
[94]57install:
58
[49]59depend:
60 makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
61
62# DO NOT DELETE
63
[114]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.