mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
* checks/Makefile.in (DYNAMIC_LDFLAGS): New macro. (nsbundle): Use
macro in linking. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@518 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
71ab86663c
commit
f2c099663b
1 changed files with 39 additions and 3 deletions
|
@ -34,6 +34,9 @@ CFLAGS = -Wall -Wno-implicit -g -O
|
||||||
CPPFLAGS =
|
CPPFLAGS =
|
||||||
LDFLAGS =
|
LDFLAGS =
|
||||||
|
|
||||||
|
DYNAMIC_BUNDLER_LINKER=@DYNAMIC_BUNDLER_LINKER@
|
||||||
|
DYNAMIC_LDFLAGS=@DYNAMIC_LDFLAGS@
|
||||||
|
DYNAMIC_CFLAGS=@DYNAMIC_CFLAGS@
|
||||||
DEFS = @DEFS@
|
DEFS = @DEFS@
|
||||||
LIBS = -L$(srcdir)/../src -lobjects @LIBOBJC@ @LIBS@ -lm
|
LIBS = -L$(srcdir)/../src -lobjects @LIBOBJC@ @LIBS@ -lm
|
||||||
|
|
||||||
|
@ -77,6 +80,7 @@ client.m \
|
||||||
string.m \
|
string.m \
|
||||||
values.m \
|
values.m \
|
||||||
nsarray.m \
|
nsarray.m \
|
||||||
|
nsbundle.m \
|
||||||
nsdictionary.m
|
nsdictionary.m
|
||||||
|
|
||||||
# nsarchiving.m
|
# nsarchiving.m
|
||||||
|
@ -86,10 +90,24 @@ server.h
|
||||||
|
|
||||||
EXCS = $(SRCS:.m=)
|
EXCS = $(SRCS:.m=)
|
||||||
|
|
||||||
RCS_FILES = $(SRCS) $(HDRS) Makefile.in NXStringTable.example
|
BUNDLE_NAME=LoadMe
|
||||||
DIST_FILES = $(RCS_FILES) NXStringTable.example
|
DYNAMIC_MFILES = \
|
||||||
|
LoadMe.m \
|
||||||
|
MyCategory.m \
|
||||||
|
SecondClass.m
|
||||||
|
|
||||||
all: $(EXCS)
|
DYNAMIC_HFILES = \
|
||||||
|
LoadMe.h \
|
||||||
|
MyCategory.h \
|
||||||
|
SecondClass.h
|
||||||
|
|
||||||
|
DYNAMIC_OFILES = $(DYNAMIC_MFILES:.m=.o)
|
||||||
|
|
||||||
|
RCS_FILES = $(SRCS) $(HDRS) $(DYNAMIC_MFILES) $(DYNAMIC_HFILES) \
|
||||||
|
Makefile.in NXStringTable.example
|
||||||
|
DIST_FILES = $(RCS_FILES)
|
||||||
|
|
||||||
|
all: $(EXCS) bundles
|
||||||
|
|
||||||
# This works for GNU make, but not others.
|
# This works for GNU make, but not others.
|
||||||
# %: %.o $(srcdir)/../src/libobjects.a
|
# %: %.o $(srcdir)/../src/libobjects.a
|
||||||
|
@ -136,6 +154,8 @@ values: values.o $(srcdir)/../src/libobjects.a
|
||||||
$(LINK_CMD)
|
$(LINK_CMD)
|
||||||
nsarray: nsarray.o $(srcdir)/../src/libobjects.a
|
nsarray: nsarray.o $(srcdir)/../src/libobjects.a
|
||||||
$(LINK_CMD)
|
$(LINK_CMD)
|
||||||
|
nsbundle: nsbundle.o $(srcdir)/../src/libobjects.a
|
||||||
|
$(CC) $(ALL_CFLAGS) $(DYNAMIC_LDFLAGS) $@.o -o $@ $(ALL_LDFLAGS)
|
||||||
nsdictionary: nsdictionary.o $(srcdir)/../src/libobjects.a
|
nsdictionary: nsdictionary.o $(srcdir)/../src/libobjects.a
|
||||||
$(LINK_CMD)
|
$(LINK_CMD)
|
||||||
|
|
||||||
|
@ -150,11 +170,27 @@ echo-excs:
|
||||||
|
|
||||||
remote: server client
|
remote: server client
|
||||||
|
|
||||||
|
# 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) \
|
||||||
|
$*.m -o $*.o
|
||||||
|
|
||||||
|
$(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)
|
||||||
|
cp NXStringTable.example $(BUNDLE_NAME).bundle/English.lproj
|
||||||
|
|
||||||
mostlyclean:
|
mostlyclean:
|
||||||
rm -f core *~ test08.data textcoder.txt
|
rm -f core *~ test08.data textcoder.txt
|
||||||
|
|
||||||
clean: mostlyclean
|
clean: mostlyclean
|
||||||
rm -f *.o $(EXCS)
|
rm -f *.o $(EXCS)
|
||||||
|
rm -rf $(BUNDLE_NAME).bundle
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
rm -f Makefile config.status
|
rm -f Makefile config.status
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue