You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
105 lines
2.3 KiB
105 lines
2.3 KiB
# |
|
# Makefile generated by: |
|
# codebench 0.55 |
|
# |
|
# Project: lite |
|
# |
|
# Created on: 15-12-2021 22:58:23 |
|
# |
|
# |
|
|
|
################################################################### |
|
## |
|
##//// 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. -Isrc |
|
|
|
CFLAGS := $(INCPATH) -D__USE_INLINE__ -Wall -Werror -Wwrite-strings |
|
|
|
|
|
################################################################### |
|
## |
|
##//// 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 -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/api.h src/renderer.h \ |
|
|
|
|
|
src/api/renderer_font.o: src/api/renderer_font.c src/api/api.h src/renderer.h \ |
|
|
|
|
|
src/api/system.o: src/api/system.c src/api/api.h |
|
|
|
src/main.o: src/main.c src/api/api.h src/renderer.h \ |
|
|
|
|
|
src/rencache.o: src/rencache.c |
|
|
|
src/renderer.o: src/renderer.c src/lib/stb/stb_truetype.h |
|
|
|
src/lib/stb/stb_truetype.o: src/lib/stb/stb_truetype.c |
|
|
|
|