9 lines
183 B
Makefile
9 lines
183 B
Makefile
INCLUDES = include
|
|
SOURCES = src
|
|
OUTPUT = main
|
|
CFLAGS=-g -o main -Wall -I$(INCLUDES)
|
|
|
|
CFILES := $(foreach dir,$(SOURCES),$(wildcard $(dir)/*.c))
|
|
|
|
all:
|
|
gcc main.c $(CFILES) $(CFLAGS)
|