libs-base/Examples/Makefile.in
mccallum e6362b8885 (EXEEXT): New variable.
(OEXT): New variable.
(LIBEXT): New variable.
(SRCS): Remove port-{server,client}.m.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1471 72102866-910b-0410-8b05-ffd578937521
1996-04-18 01:56:19 +00:00

126 lines
2.9 KiB
Makefile

#
# Examples makefile for Objective-C Class Library
# Copyright (C) 1993, 1995, 1996 Free Software Foundation, Inc.
#
# Written by: Andrew Kachites McCallum <mccallum@cs.rochester.edu>
# 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@
CFLAGS = -Wall -Wno-implicit -g -O
CPPFLAGS =
LDFLAGS =
DEFS = @DEFS@
LIBS = -L../src -l$(LIBRARY_NAME) @LIBOBJC@ @LIBS@ -lm
EXEEXT =
OEXT = .o
LIBEXT = .a
#### End of system configuration section. ####
include $(srcdir)/../Makeconf
include $(srcdir)/../Version
# xxx Is this needed anymore?
NEXT_NEXT_INCLUDES = -I/usr/include
GNU_NEXT_INCLUDES = -I$(srcdir)/../src
NEXT_INCLUDES = @NEXT_INCLUDES@
ALL_CPPFLAGS = -I../src -I$(srcdir)/../src $(NEXT_INCLUDES) $(CPPFLAGS)
ALL_CFLAGS = $(CFLAGS)
ALL_OBJCFLAGS = $(CFLAGS) -Wno-protocol
ALL_LDFLAGS = $(LDFLAGS) $(LIBS)
.SUFFIXES: .m
.m.o:
$(CC) -c $(ALL_CPPFLAGS) $(DEFS) $(ALL_OBJCFLAGS) $< -o $*.o
.c.o:
$(CC) -c $(ALL_CPPFLAGS) $(DEFS) $(ALL_CFLAGS) $< -o $*.o
SRCS = \
dictionary.m \
stdio-stream.m \
textcoding.m \
first-server.m \
first-client.m \
second-server.m \
second-client.m
HDRS = \
first-server.h \
second-server.h \
second-client.h
EXCS = $(SRCS:.m=)
all: $(EXCS)
# This works for GNU make, but not others.
%: %$(OEXT) $(srcdir)/../src/lib$(LIBRARY_NAME)$(LIBEXT)
$(CC) $(ALL_CFLAGS) $@$(OEXT) -o $@ $(ALL_LDFLAGS)
../src/lib$(LIBRARY_NAME)$(LIBEXT):
@echo You must first make the library $(LIBRARY_NAME).
@false
first: FORCE
(cd ../src; $(MAKE))
$(MAKE) first-server first-client
second: FORCE
(cd ../src; $(MAKE))
$(MAKE) second-server second-client
install:
uninstall:
RCS_FILES = $(SRCS) $(HDRS) Makefile.in \
Makefile.example.in \
configure.example.in
DIST_FILES = $(RCS_FILES)
mostlyclean:
rm -f core *~
clean: mostlyclean
rm -f *.o $(EXCS)
distclean: clean
rm -f Makefile config.status
realclean: distclean
rm -f TAGS
copy-dist: $(DIST_FILES)
mkdir ../snap/examples
ln $(DIST_FILES) ../snap/examples
Makefile: $(srcdir)/Makefile.in
cd ..; $(SHELL) config.status
FORCE: