nodesystem/Makefile

29 lines
416 B
Makefile

##
# 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
rm -f libnodesystem.so
# end