You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
434 B
Makefile

SHELL=/bin/sh
CC=gcc
APP_NAME=synthesizer
SRC=src
BUILD=build
C_FILES := $(shell find $(SRC) -name '*.c')
O_FILES += $(patsubst $(SRC)/%.c, $(BUILD)/%.o, $(C_FILES))
CFLAGS := -O0 -march=native -std=gnu99
INCLUDE :=
LIB := -lm -lraylib
synthesizer: $(APP_NAME)
$(APP_NAME): $(O_FILES)
$(CC) $(CFLAGS) $(O_FILES) -o $(APP_NAME) $(LIB)
$(BUILD)/%.o: $(SRC)/%.c
$(CC) $(INCLUDE) $(CFLAGS) -c $< -o $@
clean:
rm $(BUILD)/*.o