Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:16.0:FactoryCandidates
spooles
patch-spooles-shared-mpi
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File patch-spooles-shared-mpi of Package spooles
--- spooles-2.2.orig/makeRPM-mpi 1970-01-01 01:00:00.000000000 +0100 +++ spooles-2.2/makeRPM-mpi 2010-02-12 21:01:41.000000000 +0100 @@ -0,0 +1,27 @@ +# Makefile for Building .so and .a files + +# retrieve the relevant .o files: +SRC_FILES=$(shell grep '$(OBJ).a(' */src/makefile | grep -v 'MT/' | sed -e 's,.makefile.*).a(,/,' -e 's/).*//') + +# create the list of .o files for the dynamic linked library +DSRC_FILES=$(SRC_FILES:.o=.lo) + +TARGETS=libspooles.so + +# rule for compiling c files for use with the dynamic library +%.lo: %.c + $(PURIFY) $(CC) -c $(CFLAGS) $< -fPIC -DPIC -o $@ + +libspooles.a: $(SRC_FILES) + ar rcs $@ $? + +libspooles.so: $(DSRC_FILES) + $(CC) -shared $? -Wl,-soname,libspooles.so.2.2 -o libspooles.so.2.2 -lm + ln -s libspooles.so.2.2 libspooles.so + +all: $(TARGETS) + +.PHONY: clean + +clean: + -rm -f $(TARGETS) $(SRC_FILES) $(DSRC_FILES)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor