tibia/templates/cmd-make/Makefile
2024-01-26 07:38:01 +01:00

19 lines
387 B
Makefile

include vars.mk
CC = gcc
CFLAGS = -I${TINYWAV_DIR} -I${MIDI_PARSER_DIR}/include -fPIC -Wall -Wpedantic -Wextra -Wno-unused-parameter
all: build/${BUNDLE_NAME}
build/${BUNDLE_NAME}: src/main.c ${TINYWAV_DIR}/tinywav.c ${MIDI_PARSER_DIR}/src/midi-parser.c | build
${CC} $^ -o $@ ${CFLAGS} ${CFLAGS_EXTRA} ${LDFLAGS_EXTRA}
build:
mkdir -p $@
clean:
rm -fr build
.PHONY: all clean