Fix Makefiles

This commit is contained in:
Dendy 2021-02-07 10:28:22 +01:00
parent 5cc3007176
commit fb296822ec
Signed by: dendy
GPG Key ID: 0168B35FFD7F608F
3 changed files with 13 additions and 5 deletions

View File

@ -23,6 +23,6 @@ $(DIR):
clean: clean:
rm -rf build rm -rf build
rm -f libnode.so rm -f libnodesystem.so
# end # end

View File

@ -4,4 +4,5 @@ Just a library for handling node logic inside C, inspired by Godot, mainly focus
For now there's a basic Node struct and a Node2D that "inherits" from it. For now there's a basic Node struct and a Node2D that "inherits" from it.
You can find examples of basic usage in main.c To compile and run the examples just do "make run" on their folders

View File

@ -7,11 +7,18 @@
CC="tcc" CC="tcc"
SRC=main.c SRC=main.c
main: $(SRC) main: $(SRC) ../../libnodesystem.so
tcc -o $@ -I ../include $(SRC) -lnodesystem -L/strg/prgm/c/nodesystem tcc -o $@ -I ../../include $(SRC) -lnodesystem -L../../
run: main run: main
LD_LIBRARY_PATH=..:$LD_LIBRARY_PATH ./main LD_LIBRARY_PATH=../..:$LD_LIBRARY_PATH ./main
full: $(SRC)
make -C ../../
tcc -o main -I ../../include $(SRC) -lnodesystem -L../../
../../libnodesystem.so:
make -C ../../
clean: clean:
rm -rf main rm -rf main