nodesystem/Makefile

29 lines
410 B
Makefile
Raw Normal View History

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