14 lines
427 B
Makefile
14 lines
427 B
Makefile
CC = gcc
|
|
OBJCOPY = objcopy
|
|
CFLAGS = -std=c11 -O2 -Wall -Wextra -Werror
|
|
all: app image.bin
|
|
assets.o: assets.c
|
|
$(CC) $(CFLAGS) -c assets.c -o $@
|
|
image.bin: assets.o
|
|
$(OBJCOPY) -O binary --only-section=.catalog assets.o image.bin
|
|
app: main.c wire.c audit.c catalog.c loader.c image.h service.h audit.h wire.h
|
|
$(CC) $(CFLAGS) main.c wire.c audit.c catalog.c loader.c -o $@
|
|
clean:
|
|
rm -f app assets.o image.bin
|
|
.PHONY: all clean
|