2021-02-07 09:20:41 +00:00
|
|
|
##
|
|
|
|
# Nodesystem
|
|
|
|
#
|
|
|
|
# @file
|
|
|
|
# @version 0.1
|
|
|
|
|
|
|
|
CC="tcc"
|
|
|
|
DIR=build
|
|
|
|
SRC=src
|
|
|
|
|
|
|
|
OBJ_FLAGS=-c -Wall -Werror -I include/
|
|
|
|
|
|
|
|
all: $(DIR)/node.o $(DIR)/node2d.o
|
|
|
|
$(CC) -shared -o libnodesystem.so $^
|
|
|
|
|
|
|
|
build/node.o: $(SRC)/node.c $(DIR)
|
|
|
|
$(CC) $(OBJ_FLAGS) $(SRC)/node.c -o $@
|
|
|
|
build/node2d.o: $(SRC)/node2d.c $(DIR)
|
|
|
|
$(CC) $(OBJ_FLAGS) $(SRC)/node2d.c -o $@
|
|
|
|
|
|
|
|
$(DIR):
|
|
|
|
mkdir $(DIR)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
2021-02-07 09:28:22 +00:00
|
|
|
rm -f libnodesystem.so
|
2021-02-07 09:20:41 +00:00
|
|
|
|
|
|
|
# end
|