19 lines
364 B
Makefile
19 lines
364 B
Makefile
TARGETNAME = inverter
|
|
BUILDFOLDER = ./build/
|
|
TARGET = $(BUILDFOLDER)$(TARGETNAME)
|
|
|
|
INC = -Isrc/include -I/usr/include -I/usr/include/libftdi1
|
|
CFLAGS = -Wall -Wpedantic -Wextra -Os
|
|
CPPFLAGS =
|
|
|
|
SRC = $(wildcard src/*.c)
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(SRC)
|
|
mkdir -p build
|
|
gcc -o $@ $^ $(CPPFLAGS) $(CFLAGS) $(INC) -lm -lftdi1 -g
|
|
|
|
clean:
|
|
rm -fr ./src/*.o ./build/
|