incubator-triplesoup-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dr...@apache.org
Subject svn commit: r531997 - in /incubator/triplesoup/code/trunk: build/rules.mk.in libraries/b/Makefile.in
Date Tue, 24 Apr 2007 16:14:27 GMT
Author: dreid
Date: Tue Apr 24 09:14:26 2007
New Revision: 531997

URL: http://svn.apache.org/viewvc?view=rev&rev=531997
Log:
Add a .SUFFIXES line so that shared objects are now created
Change the format of the LOBJS rule

With this change we can now build static and shared libraries.

Modified:
    incubator/triplesoup/code/trunk/build/rules.mk.in
    incubator/triplesoup/code/trunk/libraries/b/Makefile.in

Modified: incubator/triplesoup/code/trunk/build/rules.mk.in
URL: http://svn.apache.org/viewvc/incubator/triplesoup/code/trunk/build/rules.mk.in?view=diff&rev=531997&r1=531996&r2=531997
==============================================================================
--- incubator/triplesoup/code/trunk/build/rules.mk.in (original)
+++ incubator/triplesoup/code/trunk/build/rules.mk.in Tue Apr 24 09:14:26 2007
@@ -34,14 +34,16 @@
 	$(LOBJS) $(LDFLAGS) && \
 	echo "\t\tShared library lib$(MODULE).$(SO_EXT) created"
 
-# Rules
+# Rules for making objects
 #
+.SUFFIXES:  .c .o .lo
+
 # Static object creation
 .c.o:
 	@$(CC) $(CFLAGS) $(INCLUDES) $(DEFINES) \
 	      -c $< -o $@ && echo "\t\tCreated object $@"
 
+# Shared object creation
 .c.lo:
 	@$(CC) $(CFLAGS) $(PICFLAGS) $(INCLUDES) $(DEFINES) \
 	      -c $< -o $@ && echo "\t\tCreated shared object $@"
-

Modified: incubator/triplesoup/code/trunk/libraries/b/Makefile.in
URL: http://svn.apache.org/viewvc/incubator/triplesoup/code/trunk/libraries/b/Makefile.in?view=diff&rev=531997&r1=531996&r2=531997
==============================================================================
--- incubator/triplesoup/code/trunk/libraries/b/Makefile.in (original)
+++ incubator/triplesoup/code/trunk/libraries/b/Makefile.in Tue Apr 24 09:14:26 2007
@@ -46,7 +46,7 @@
 		btriple.c
 
 OBJS=	$(CSRCS:%.c=%.o)
-LOBJS=	$(CSRCS:.c=.lo)
+LOBJS=	$(CSRCS:%.c=%.lo)
 
 ### Rules
 all:	libb



Mime
View raw message