diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /vendor/Makefile | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'vendor/Makefile')
-rw-r--r-- | vendor/Makefile | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/vendor/Makefile b/vendor/Makefile new file mode 100644 index 00000000..6f8dc47b --- /dev/null +++ b/vendor/Makefile @@ -0,0 +1,75 @@ +#/////////////////////////////////////////////////////////////////////////////// +#// +#// Makefile for the Vendor Libraries +#// +#/////////////////////////////////////////////////////////////////////////////// + +# primary dependencies + +NAME = vendor +VERSION = 1.0 +PLATFORM := $(shell uname -s) +PLMACH := $(shell uname -m) +HERE := $(shell /bin/pwd) +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: + (./mklibs) + +libs: + +install: + (cd cfitsio ; make install) + (cd voclient ; make install) + +clean: + (cd cfitsio ; make clean) + (cd voclient ; make clean) + + +cfitsio: + (cd cfitsio ; ./configure --libdir=../../bin; make ; make install) + +voclient: + (cd voclient ; make World) + + +############################################################################### +# 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 $@ |