104 lines
2.3 KiB
Makefile
Executable File
104 lines
2.3 KiB
Makefile
Executable File
#
|
|
# Makefile generated by:
|
|
# codebench 0.55
|
|
#
|
|
# Project: lite
|
|
#
|
|
# Created on: 14-12-2021 20:40:46
|
|
#
|
|
#
|
|
|
|
###################################################################
|
|
##
|
|
##//// Objects
|
|
##
|
|
###################################################################
|
|
|
|
lite_OBJ := \
|
|
src/lib/stb/stb_truetype.o src/api/renderer.o src/api/renderer_font.o \
|
|
src/api/system.o src/main.o src/api/api.o \
|
|
src/rencache.o src/renderer.o
|
|
|
|
|
|
###################################################################
|
|
##
|
|
##//// Variables and Environment
|
|
##
|
|
###################################################################
|
|
|
|
CC := gcc:bin/gcc
|
|
|
|
INCPATH := -I.
|
|
|
|
CFLAGS := $(INCPATH) -D__USE_INLINE__ -Wall -Werror -Wwrite-strings -Isrc
|
|
|
|
|
|
###################################################################
|
|
##
|
|
##//// General rules
|
|
##
|
|
###################################################################
|
|
|
|
.PHONY: all all-before all-after clean clean-custom realclean
|
|
|
|
all: all-before lite all-after
|
|
|
|
all-before:
|
|
# You can add rules here to execute before the project is built
|
|
|
|
all-after:
|
|
# You can add rules here to execute after the project is built
|
|
|
|
clean: clean-custom
|
|
@echo "Cleaning compiler objects..."
|
|
@rm -f $(lite_OBJ)
|
|
|
|
realclean:
|
|
@echo "Cleaning compiler objects and targets..."
|
|
@rm -f $(lite_OBJ) lite
|
|
|
|
|
|
###################################################################
|
|
##
|
|
##//// Targets
|
|
##
|
|
###################################################################
|
|
|
|
lite: $(lite_OBJ)
|
|
@echo "Linking lite"
|
|
@gcc:bin/gcc -o lite $(lite_OBJ) -llua -lSDL2 -lfreetype -lpthread -lauto
|
|
@echo "Removing stale debug target: lite"
|
|
@rm -f lite.debug
|
|
|
|
|
|
###################################################################
|
|
##
|
|
##//// Standard rules
|
|
##
|
|
###################################################################
|
|
|
|
# A default rule to make all the objects listed below
|
|
# because we are hiding compiler commands from the output
|
|
|
|
.c.o:
|
|
@echo "Compiling $<"
|
|
@$(CC) -c $< -o $*.o $(CFLAGS)
|
|
|
|
src/api/api.o: src/api/api.c
|
|
|
|
src/api/renderer.o: src/api/renderer.c
|
|
|
|
src/api/renderer_font.o: src/api/renderer_font.c
|
|
|
|
src/api/system.o: src/api/system.c
|
|
|
|
src/main.o: src/main.c src/api/api.h src/renderer.h \
|
|
|
|
|
|
src/rencache.o: src/rencache.c src/rencache.h
|
|
|
|
src/renderer.o: src/renderer.c src/lib/stb/stb_truetype.h
|
|
|
|
src/lib/stb/stb_truetype.o: src/lib/stb/stb_truetype.c
|
|
|