diff options
Diffstat (limited to 'lib/libOSSlib/Makefile')
-rw-r--r-- | lib/libOSSlib/Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/libOSSlib/Makefile b/lib/libOSSlib/Makefile new file mode 100644 index 0000000..98029f1 --- /dev/null +++ b/lib/libOSSlib/Makefile @@ -0,0 +1,29 @@ +OBJS=libmain.o midiparser.o play_event.o +INSTALLLIB=/lib +LDFLAGS=-shared -fPIC +CFLAGS=-O -fPIC +#LDFLAGS=-Bdynamic +AROPTS=rc +AR=ar + +all: + sh ./compile.sh $(INSTALLLIB) "$(CC)" "$(CFLAGS)" "$(MAKE)" + +install: all + cp libOSSlib.* $(INSTALLLIB) + cp drums.o3 std.o3 /etc + +static: libOSSlib.a + cp libOSSlib.a $(INSTALLLIB) + +libOSSlib.so: $(OBJS) + ${CC} $(LDFLAGS) -o libOSSlib.so $(OBJS) + +dep: + +clean: + rm -f *.o *.so x y z core *.a + +libOSSlib.a: $(OBJS) + $(AR) $(AROPTS) libOSSlib.a $(OBJS) + #-ranlib libOSSlib.a |