diff --git a/src/lib/ubix_api/Makefile b/src/lib/ubix_api/Makefile new file mode 100644 index 0000000..316325a --- /dev/null +++ b/src/lib/ubix_api/Makefile @@ -0,0 +1,40 @@ +# $Id$ +# The System Makefile (C) 2002 The UbixOS Project + +# Include Global 'Source' Options +include ../../Makefile.inc +include ../Makefile.inc + +#Objects +OBJS = + +#Sub Sections +SUBS = ./test/*.o + +#Output +OUTPUT = ubix_api.so + +lib.so: $(OBJS) + (cd test;make) + $(CC) -nostdlib -shared -Wl,-soname,libc_old.so -o $(OUTPUT) $(OBJS) $(SUBS) + +# Compile the source files +.cc.o: + $(CXX) -Wall -nostdinc -O -I./include -c -o $@ $< + +.cc.s: + $(CXX) -Wall -nostdinc -O -I./include -S -o $@ $< + +.c.o: + $(CC) -Wall -nostdinc -O -I./include -c $< + +.c.s: + $(CC) -Wall -nostdinc -O -I./include -S -o $@ $< + +.S.o: + $(CC) -Wall -nostdinc -c -o $@ $< + +# Clean up the junk +clean: + $(REMOVE) $(OBJS) $(OUTPUT) + (cd test;make clean) diff --git a/src/lib/ubix_api/test/Makefile b/src/lib/ubix_api/test/Makefile new file mode 100644 index 0000000..a0b0fe5 --- /dev/null +++ b/src/lib/ubix_api/test/Makefile @@ -0,0 +1,34 @@ +# $Id$ +# The System Makefile (C) 2002 The UbixOS Project + +# Include Global 'Source' Options +include ../../../Makefile.inc +include ../../Makefile.inc + +#Objects +OBJS = test.o + +#Output +OUTPUT = ubix_api.so + +$(OUTPUT): $(OBJS) + +# Compile the source files +.cc.o: + $(CXX) $(CFLAGS) -Wall -nostdlib -O -I../include -c -o $@ $< + +.cc.s: + $(CXX) $(CFLAGS) -Wall -nostdlib -O -I../include -S -o $@ $< + +.c.o: + $(CC) $(CFLAGS) -Wall -nostdlib -O -I../include -I../../../include -c $< + +.c.s: + $(CC) $(CFLAGS) -Wall -nostdlib -O -I../include -S -o $@ $< + +.S.o: + $(CC) $(CFLAGS) -Wall -nostdlib -c -o $@ $< + +# Clean up the junk +clean: + $(REMOVE) $(OBJS) $(OUTPUT) diff --git a/src/lib/ubix_api/test/test.c b/src/lib/ubix_api/test/test.c new file mode 100644 index 0000000..cd8b111 --- /dev/null +++ b/src/lib/ubix_api/test/test.c @@ -0,0 +1,3 @@ +int ubix_test() { + return(0x69); + }