Commits

Anonymous committed a9e2890

Clean up Makefile in modules subdir, so that it builds.

Comments (0)

Files changed (2)

 
 #----------------------------------------
 
-LIB=libbhuna.a
+LIB=lib/libbhuna.a
 BIN=bhuna
 
 all: $(LIB) $(BIN)
 BINOBJS=driver/main.o
 
 $(BIN): $(BINOBJS) $(LIB)
-	$(CC) $(CFLAGS) $(BINOBJS) $(STATIC) -L. -lbhuna -o $(BIN)
+	$(CC) $(CFLAGS) $(BINOBJS) $(STATIC) -Llib -lbhuna -o $(BIN)

src/modules/Makefile

 CFLAGS+=-I../lib
 
-.include "../Makefile.inc"
-
 all: io.so test
 
 test.o: test.c
 	gcc $(CFLAGS) -fpic -c io.c -o io.o
 
 io.so: io.o
-	gcc -shared -nostdlib io.o -L../lib -lbhuna -o io.so
+	gcc -shared io.o -L../lib -lbhuna -o io.so
 
 clean:
 	rm -f test *.o *.so