Fix Makefiles
This commit is contained in:
parent
5cc3007176
commit
fb296822ec
2
Makefile
2
Makefile
|
@ -23,6 +23,6 @@ $(DIR):
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf build
|
rm -rf build
|
||||||
rm -f libnode.so
|
rm -f libnodesystem.so
|
||||||
|
|
||||||
# end
|
# end
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue