1994-11-04 16:29:24 +00:00
|
|
|
#
|
|
|
|
# Tests makefile for Objective-C Class Library
|
1996-01-05 22:09:52 +00:00
|
|
|
# Copyright (C) 1993, 1995, 1996 Free Software Foundation, Inc.
|
1994-11-04 16:29:24 +00:00
|
|
|
#
|
1996-04-17 20:17:45 +00:00
|
|
|
# Written by: Andrew Kachites McCallum <mccallum@cs.rochester.edu>
|
1994-11-04 16:29:24 +00:00
|
|
|
# Dept. of Computer Science, U. of Rochester, Rochester, NY 14627
|
|
|
|
#
|
|
|
|
# This file is part of the GNU Objective-C Class Library.
|
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Library General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
|
|
|
# version 2 of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# Library General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Library General Public
|
|
|
|
# License along with this library; if not, write to the Free
|
|
|
|
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
#### Start of system configuration section. ####
|
|
|
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
CC = @CC@
|
|
|
|
|
1996-04-17 00:31:48 +00:00
|
|
|
CFLAGS = -Wall -Wno-implicit -Wno-format -g -O
|
1994-11-04 16:29:24 +00:00
|
|
|
CPPFLAGS =
|
|
|
|
LDFLAGS =
|
|
|
|
|
1995-08-02 16:57:29 +00:00
|
|
|
DYNAMIC_BUNDLER_LINKER=@DYNAMIC_BUNDLER_LINKER@
|
|
|
|
DYNAMIC_LDFLAGS=@DYNAMIC_LDFLAGS@
|
|
|
|
DYNAMIC_CFLAGS=@DYNAMIC_CFLAGS@
|
1994-11-04 16:29:24 +00:00
|
|
|
DEFS = @DEFS@
|
1996-04-17 14:54:57 +00:00
|
|
|
LIBS = -L../src -l$(LIBRARY_NAME) @LIBOBJC@ @LIBS@ -lm
|
1994-11-04 16:29:24 +00:00
|
|
|
|
1996-02-13 15:43:30 +00:00
|
|
|
EXEEXT =
|
|
|
|
OEXT = .o
|
|
|
|
LIBEXT = .a
|
|
|
|
|
1994-11-04 16:29:24 +00:00
|
|
|
#### End of system configuration section. ####
|
|
|
|
|
1995-06-20 16:25:54 +00:00
|
|
|
include $(srcdir)/../Makeconf
|
1995-11-14 16:40:58 +00:00
|
|
|
include $(srcdir)/../Version
|
1995-06-20 16:25:54 +00:00
|
|
|
|
1995-06-28 23:54:31 +00:00
|
|
|
# Not needed anymore?
|
1994-11-04 16:29:24 +00:00
|
|
|
NEXT_NEXT_INCLUDES = -I/usr/include
|
1996-04-17 14:54:57 +00:00
|
|
|
GNU_NEXT_INCLUDES = -I$(srcdir)/../src
|
1994-11-04 16:29:24 +00:00
|
|
|
NEXT_INCLUDES = @NEXT_INCLUDES@
|
|
|
|
|
1996-01-15 23:40:56 +00:00
|
|
|
ALL_CPPFLAGS = -I../src -I$(srcdir)/../src $(NEXT_INCLUDES) $(CPPFLAGS)
|
1994-11-04 16:29:24 +00:00
|
|
|
ALL_CFLAGS = $(CFLAGS)
|
|
|
|
ALL_OBJCFLAGS = $(CFLAGS) -Wno-protocol
|
|
|
|
ALL_LDFLAGS = $(LDFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
.SUFFIXES: .m
|
1996-02-13 15:43:30 +00:00
|
|
|
.m$(OEXT):
|
|
|
|
$(CC) -c $(ALL_CPPFLAGS) $(DEFS) $(ALL_OBJCFLAGS) $< -o $*$(OEXT)
|
|
|
|
.c$(OEXT):
|
|
|
|
$(CC) -c $(ALL_CPPFLAGS) $(DEFS) $(ALL_CFLAGS) $< -o $*$(OEXT)
|
1994-11-04 16:29:24 +00:00
|
|
|
|
|
|
|
SRCS = \
|
|
|
|
test01.m \
|
|
|
|
test02.m \
|
1996-04-17 00:31:48 +00:00
|
|
|
heap.m \
|
|
|
|
nxst.m \
|
|
|
|
randoms.m \
|
|
|
|
prepend.m \
|
1994-11-04 16:29:24 +00:00
|
|
|
pipes.m \
|
|
|
|
server.m \
|
1995-03-12 19:30:27 +00:00
|
|
|
client.m \
|
1995-04-03 21:26:15 +00:00
|
|
|
string.m \
|
1995-04-05 00:52:00 +00:00
|
|
|
values.m \
|
1995-05-05 18:33:55 +00:00
|
|
|
nsarray.m \
|
1995-08-02 16:57:29 +00:00
|
|
|
nsbundle.m \
|
1995-08-16 15:59:00 +00:00
|
|
|
nsdictionary.m \
|
1995-10-30 01:50:46 +00:00
|
|
|
nsset.m \
|
1996-01-26 02:58:47 +00:00
|
|
|
nsprocessinfo.m \
|
1996-02-13 01:57:38 +00:00
|
|
|
nsarchiver.m \
|
1996-02-13 15:43:30 +00:00
|
|
|
invocation.m \
|
1996-02-22 15:04:31 +00:00
|
|
|
diningPhilosophers.m \
|
|
|
|
nsmaptable.m \
|
1996-03-01 16:25:26 +00:00
|
|
|
nshashtable.m \
|
|
|
|
tcpport-server.m \
|
1996-03-06 14:42:02 +00:00
|
|
|
tcpport-client.m \
|
1996-03-13 02:40:59 +00:00
|
|
|
nsnotification.m \
|
1996-03-22 00:27:55 +00:00
|
|
|
nstimer.m \
|
|
|
|
coder.m \
|
1996-04-13 19:41:20 +00:00
|
|
|
cstream.m \
|
|
|
|
fref.m
|
1995-04-15 20:12:01 +00:00
|
|
|
|
|
|
|
# nsarchiving.m
|
1994-11-04 16:29:24 +00:00
|
|
|
|
1996-03-06 14:42:02 +00:00
|
|
|
tcpport: FORCE
|
|
|
|
(cd ../src; $(MAKE))
|
|
|
|
$(MAKE) tcpport-server tcpport-client
|
|
|
|
remote: FORCE
|
|
|
|
(cd ../src; $(MAKE))
|
|
|
|
$(MAKE) server client
|
1996-03-01 16:25:26 +00:00
|
|
|
|
1994-11-04 16:29:24 +00:00
|
|
|
HDRS = \
|
|
|
|
server.h
|
|
|
|
|
|
|
|
EXCS = $(SRCS:.m=)
|
1996-02-13 15:43:30 +00:00
|
|
|
EXECS = $(SRCS:.m=$(EXEEXT))
|
1994-11-04 16:29:24 +00:00
|
|
|
|
1995-08-02 16:57:29 +00:00
|
|
|
BUNDLE_NAME=LoadMe
|
|
|
|
DYNAMIC_MFILES = \
|
|
|
|
LoadMe.m \
|
|
|
|
MyCategory.m \
|
|
|
|
SecondClass.m
|
1994-11-04 16:29:24 +00:00
|
|
|
|
1995-08-02 16:57:29 +00:00
|
|
|
DYNAMIC_HFILES = \
|
|
|
|
LoadMe.h \
|
|
|
|
MyCategory.h \
|
|
|
|
SecondClass.h
|
|
|
|
|
1996-02-13 15:43:30 +00:00
|
|
|
DYNAMIC_OFILES = $(DYNAMIC_MFILES:.m=$(OEXT))
|
1995-08-02 16:57:29 +00:00
|
|
|
|
|
|
|
RCS_FILES = $(SRCS) $(HDRS) $(DYNAMIC_MFILES) $(DYNAMIC_HFILES) \
|
1996-02-14 17:23:49 +00:00
|
|
|
Makefile.in NXStringTable.example Makefile.sed.nt
|
1995-08-02 16:57:29 +00:00
|
|
|
DIST_FILES = $(RCS_FILES)
|
|
|
|
|
1996-01-16 00:17:12 +00:00
|
|
|
# type 'make bundles' if you also want to check bundles.
|
|
|
|
all: $(EXCS)
|
1994-11-04 16:29:24 +00:00
|
|
|
|
|
|
|
# This works for GNU make, but not others.
|
1996-04-17 19:09:43 +00:00
|
|
|
%: %$(OEXT) ../src/lib$(LIBRARY_NAME)$(LIBEXT)
|
1996-03-01 16:25:26 +00:00
|
|
|
$(CC) $(ALL_CFLAGS) $@$(OEXT) -o $@ $(ALL_LDFLAGS)
|
1994-11-04 16:29:24 +00:00
|
|
|
|
1996-04-18 00:56:32 +00:00
|
|
|
../src/lib$(LIBRARY_NAME)$(LIBEXT):
|
|
|
|
@echo You must first make the library $(LIBRARY_NAME).
|
|
|
|
@false
|
1996-04-17 19:09:43 +00:00
|
|
|
|
1995-06-20 16:25:54 +00:00
|
|
|
install:
|
|
|
|
uninstall:
|
|
|
|
|
1994-11-04 16:29:24 +00:00
|
|
|
echo-excs:
|
|
|
|
@echo $(EXCS)
|
|
|
|
|
1995-08-02 16:57:29 +00:00
|
|
|
# These next few lines give an example of how to compile, link and store
|
|
|
|
# a bundle.
|
|
|
|
bundles: $(BUNDLE_NAME).bundle/$(BUNDLE_NAME)
|
|
|
|
|
|
|
|
$(DYNAMIC_OFILES): $(DYNAMIC_MFILES) $(DYNAMIC_HFILES)
|
|
|
|
$(CC) -c $(ALL_CPPFLAGS) $(DEFS) $(DYNAMIC_CFLAGS) $(ALL_OBJCFLAGS) \
|
1996-02-13 15:43:30 +00:00
|
|
|
$(srcdir)/$*.m -o $*$(OEXT)
|
1995-08-02 16:57:29 +00:00
|
|
|
|
|
|
|
$(BUNDLE_NAME).bundle/$(BUNDLE_NAME): $(DYNAMIC_OFILES)
|
|
|
|
-mkdir $(BUNDLE_NAME).bundle
|
|
|
|
-mkdir $(BUNDLE_NAME).bundle/English.lproj
|
|
|
|
$(DYNAMIC_BUNDLER_LINKER) -o $(BUNDLE_NAME).bundle/$(BUNDLE_NAME) \
|
|
|
|
$(DYNAMIC_OFILES)
|
1996-01-12 20:42:18 +00:00
|
|
|
cp $(srcdir)/NXStringTable.example $(BUNDLE_NAME).bundle/English.lproj
|
1995-08-02 16:57:29 +00:00
|
|
|
|
1994-11-04 16:29:24 +00:00
|
|
|
mostlyclean:
|
|
|
|
rm -f core *~ test08.data textcoder.txt
|
|
|
|
|
|
|
|
clean: mostlyclean
|
1996-02-13 15:43:30 +00:00
|
|
|
rm -f *$(OEXT) $(EXECS)
|
1995-08-02 16:57:29 +00:00
|
|
|
rm -rf $(BUNDLE_NAME).bundle
|
1994-11-04 16:29:24 +00:00
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f Makefile config.status
|
|
|
|
|
|
|
|
realclean: distclean
|
|
|
|
rm -f TAGS
|
|
|
|
|
1995-06-20 16:25:54 +00:00
|
|
|
copy-dist: $(DIST_FILES)
|
1996-01-05 22:09:52 +00:00
|
|
|
mkdir ../snap/checks
|
|
|
|
ln $(DIST_FILES) ../snap/checks
|
1994-11-04 16:29:24 +00:00
|
|
|
|
1996-01-15 23:40:56 +00:00
|
|
|
Makefile: $(srcdir)/Makefile.in
|
1996-01-05 22:09:52 +00:00
|
|
|
cd ..; $(SHELL) config.status
|
1996-03-06 14:42:02 +00:00
|
|
|
|
|
|
|
FORCE:
|