source: trunk/gsdl/src/txt2db/Makefile@ 202

Last change on this file since 202 was 202, checked in by sjboddie, 25 years ago

fixed compiler error

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1###########################################################################
2#
3# Makefile -- Makefile for txt2db
4# Copyright (C) 1998 Rodger McNab, Stefan Boddie
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2 of the License, or
9# (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19#
20# @(#)Makefile.in 1.3 16 Mar 1994
21#
22###########################################################################
23
24
25AR = ar
26CC = gcc
27CCFLAGS =
28DEFS = -O2
29RANLIB = ranlib
30INCLUDES = -I../../lib
31LDFLAGS = -lg++ -lgdbm
32LIBS = ../../lib/gsdllib.a ../../packages/mg-1.3d/lib/unitool.o
33GSDLOS = linux
34
35
36COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CCFLAGS)
37LINK = $(CC) $(LDFLAGS) -o $@
38
39.SUFFIXES:
40.SUFFIXES: .c .o
41.c.o:
42 $(COMPILE) $<
43
44.SUFFIXES: .cpp .o
45.cpp.o:
46 $(COMPILE) $<
47
48
49HEADERS =
50
51SOURCES = txt2db.cpp
52
53OBJECTS = txt2db.o
54
55EXEC = txt2db
56
57all : $(EXEC)
58
59install: $(EXEC)
60 install -m 755 -s $(EXEC) ../../bin/$(GSDLOS)
61
62clean:
63 rm -f $(OBJECTS) $(EXEC)
64
65depend:
66 makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
67
68
69# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
70
71TXT2DB_OBJS = txt2db.o
72
73txt2db: $(TXT2DB_OBJS) $(LIBS)
74 $(LINK) $(TXT2DB_OBJS) $(LIBS)
75
76
77# DO NOT DELETE
78
79txt2db.o: ../../lib/text_t.h
Note: See TracBrowser for help on using the repository browser.