forked from snapshot112/minigame-menu
wip refactoring file structure
This commit is contained in:
17
Makefile.trial
Normal file
17
Makefile.trial
Normal file
@@ -0,0 +1,17 @@
|
||||
CC = gcc
|
||||
CFLAGS = -std=gnu11 -Wextra -pedantic -Wall -O0 -g3 -fsanitize=address
|
||||
LDFLAGS = -lncursesw -fsanitize=address
|
||||
OBJ_DIR = ./build
|
||||
OBJECTS = $(wildcard $(OBJ_DIR)/*.o)
|
||||
BUILD_COMMAND = $(CC) -c $^ -o $(OBJ_DIR)/$@ $(CFLAGS) $(LDFLAGS)
|
||||
|
||||
main: build
|
||||
|
||||
build: main.o
|
||||
$(BUILD_COMMAND)
|
||||
|
||||
clean:
|
||||
rm -f *~ $(OBJECTS) main
|
||||
|
||||
grid: engine/grid/grid.c
|
||||
$(CC) -c $^ -o $(OBJ_DIR)/$@.o $(CFLAGS) $(LDFLAGS)
|
||||
Reference in New Issue
Block a user