diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /vendor/voclient/Makefile | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'vendor/voclient/Makefile')
-rw-r--r-- | vendor/voclient/Makefile | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/vendor/voclient/Makefile b/vendor/voclient/Makefile new file mode 100644 index 00000000..9e7aa832 --- /dev/null +++ b/vendor/voclient/Makefile @@ -0,0 +1,115 @@ +#/////////////////////////////////////////////////////////////////////////////// +#// +#// Makefile for the VOTable Interface +#// +#/////////////////////////////////////////////////////////////////////////////// + +# primary dependencies + +NAME = VOClient +VERSION = 1.0 +PLATFORM := $(shell uname -s) +PLMACH := $(shell uname -m) +HERE := $(shell /bin/pwd) +#BINDIR := ./bin/ +#LIBDIR := ./lib/ +#INCDIR := ./include/ +BINDIR := ../../bin/ +LIBDIR := ../../lib/ +INCDIR := ../../lib/ + + +# includes, flags and libraries +CC = gcc +CINCS = -I$(INCDIR) -I./ +ifeq ($(PLATFORM), "Darwin") + ifeq ($(PLATFORM), "x86_64") + CARCH = -m64 -mmacosx-version-min=10.5 + else + CARCH = -arch i386 -arch ppc -m32 -mmacosx-version-min=10.4 + endif +else + CARCH = +endif + +CFLAGS = -g -Wall $(CARCH) -D$(PLATFORM) $(CINCS) -L./ +LIBS = -lm -lc -lpthread + + +all: + (cd common ; make all ; make install) + (cd libsamp ; make all ; make install) + (cd libvotable ; make all ; make install) + (cd libvoclient ; make all ; make install) + (cd voapps ; make all ; make install) + (cd libvo ; make all ; make install) + cp voclient.jar voclientd bin/ + /bin/rm -rf bin/curl* lib/pkgconfig + /bin/rm -rf lib/*.dylib lib/*.la lib/*.so + +libs: + (cd common ; make libs) + (cd libvotable ; make libs) + (cd libsamp ; make libs) + (cd libvoclient ; make libs) + (cd voapps ; make libs) + (cd libvo ; make libs) + +apps: + (cd common ; make apps) + (cd libvotable ; make apps) + (cd libsamp ; make apps) + (cd libvoclient ; make apps) + (cd voapps ; make apps) + +examples: + (cd common ; make examples) + (cd libvotable ; make examples) + (cd libsamp ; make examples) + (cd libvoclient ; make examples) + (cd voapps ; make examples) + +install: + (cd common ; make install) + (cd libvotable ; make install) + (cd libsamp ; make install) + (cd libvoclient ; make install) + (cd voapps ; make install) + (cd libvo ; make install) + cp voclient.jar voclientd bin/ + /bin/rm -rf bin/curl* lib/pkgconfig + /bin/rm -rf lib/*.dylib lib/*.la lib/*.so + +clean: + (cd common ; make distclean) + (cd libvotable ; make clean) + (cd libsamp ; make clean) + (cd libvoclient ; make clean) + (cd voapps ; make clean) + (cd libvo ; make clean) + /bin/rm -rf voclient/lib/libvoclient.* + /bin/rm -rf bin/* lib/* include/* *spool* */*spool* */*/*spool* + /bin/rm -rf */config.log */*/config.log */*/*/config.log + /bin/rm -rf */*.dylib + + + +############################################################################### +# Leave this stuff alone. +############################################################################### + +$(STATICLIB): $(SRCS:%.c=Static/%.o) + /usr/bin/ar rv $@ $? +Static/%.o: %.c $(INCS) + /usr/bin/gcc $(CINCS) $(CFLAGS) -c $< -o $@ +Static: + /bin/mkdir $@ + chmod 777 $@ + +$(SHAREDLIB): $(SRCS:%.c=Shared/%.o) + /usr/bin/ld -shared -o $@ $? -lc -ldl +Shared/%.o: %.c $(INCS) + /usr/bin/gcc $(CINCS) $(CFLAGS) -fpic -shared -c $< -o $@ +Shared: + /bin/mkdir $@ + chmod 777 $@ |