tbuild/Makefile
xSlendiX e7a028bd75 Replace build script with Makefile and fix bug.
Signed-off-by: xSlendiX <slendi@socopon.com>
2022-12-18 11:07:52 +02:00

30 lines
493 B
Makefile

CC=tcc
CFLAGS=-O0 -ggdb -Wall
.PHONY: all clean install
all: tbuild
tbuild: main.o tomlc99/toml.o
$(CC) $(CFLAGS) tomlc99/toml.o main.o -o tbuild
main.o: main.c
$(CC) $(CFLAGS) -c main.c -o main.o
tomlc99/toml.o:
cd tomlc99 && $(MAKE) && cd ..
clean:
rm -f tbuild main.o tomlc99/toml.o
install:
ifeq ($(OS),Windows_NT)
mkdir "C:\tbuild" ; \
copy tbuild "C:\tbuild" ; \
copy RedSeaGen.exe "C:\tbuild" ;
else
install tbuild /usr/local/bin
install RedSeaGen /usr/local/bin
endif