aboutsummaryrefslogtreecommitdiff
path: root/vendor/voclient/libvo
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /vendor/voclient/libvo
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'vendor/voclient/libvo')
-rw-r--r--vendor/voclient/libvo/Makefile103
-rw-r--r--vendor/voclient/libvo/null0
2 files changed, 103 insertions, 0 deletions
diff --git a/vendor/voclient/libvo/Makefile b/vendor/voclient/libvo/Makefile
new file mode 100644
index 00000000..8c60aeeb
--- /dev/null
+++ b/vendor/voclient/libvo/Makefile
@@ -0,0 +1,103 @@
+#///////////////////////////////////////////////////////////////////////////////
+#//
+#// Makefile for the VO Uber-library
+#//
+#///////////////////////////////////////////////////////////////////////////////
+
+# primary dependencies
+
+NAME = VO
+VERSION = 1.0
+PLATFORM := $(shell uname -s)
+PLMACH := $(shell uname -m)
+HERE := $(shell /bin/pwd)
+BINDIR := ../bin/
+LIBDIR := ../lib/
+INCDIR := ../include/
+
+
+# secondary dependencies
+
+LIBBASE = lib$(NAME)
+STATICLIB = $(LIBDIR)/$(LIBBASE).a
+SHAREDLIB = $(LIBDIR)/$(LIBBASE).so.$(VERSION)
+
+
+# includes, flags and libraries
+CC = gcc
+CINCS = -I$(INCDIR) -I.
+
+CLIBS = -lm -lc -lcurl -lpthread
+CARCH = -m64 -mmacosx-version-min=10.5
+
+CFLAGS = -g -Wall $(CARCH) -D$(PLATFORM) $(CINCS) -L./
+
+
+
+# list of source and include files
+SRCS =
+OBJS =
+INCS =
+LIBS =
+APPS =
+
+
+all: lib
+
+World: lib
+
+install: all
+ mv lib$(NAME).a $(LIBDIR)
+
+objs: $(OBJS) $(INCS)
+
+clean:
+ /bin/rm -f *.o *.a *.e *.so .BASE
+
+
+
+####################################
+# Apps
+####################################
+
+zztest: zztest.o $(OBJS)
+ $(CC) $(CFLAGS) -o zztest zztest.o $(LFLAGS) $(LIBS)
+
+
+
+####################################
+# LIBVO dependency libraries.
+####################################
+
+lib: objs $(INCS)
+ ar x ../lib/libsamp.a
+ ar x ../lib/libVOTable.a
+ ar x ../lib/libVOClient.a
+ ar x ../lib/libVOApps.a
+ (if [ "$(PLATFORM)" != "Darwin" ]; then ar x ../lib/libcurl.a; fi)
+ chmod 644 *.o
+ ar rv libVO.a *.o
+ /bin/rm -f *.o __*
+
+
+
+
+###############################################################################
+# Leave this stuff alone.
+###############################################################################
+
+$(STATICLIB): $(SRCS:%.c=Static/%.o)
+ /usr/bin/ar r $@ $?
+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 $@
diff --git a/vendor/voclient/libvo/null b/vendor/voclient/libvo/null
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/vendor/voclient/libvo/null