35 lines
695 B
Makefile
35 lines
695 B
Makefile
|
|
|
|
CC = gcc
|
|
CCOPT = -Wall -O3 -g -DDEBUG_LEVEL=0
|
|
|
|
# -------------------------------------------------------
|
|
|
|
all: alguabeep
|
|
|
|
# -------------------------------------------------------
|
|
|
|
process.o: process.c process.h Makefile
|
|
$(CC) $(CCOPT) -c $<
|
|
|
|
funcs.o: funcs.c funcs.h Makefile
|
|
$(CC) $(CCOPT) -c $<
|
|
|
|
display.o: display.c funcs.h Makefile
|
|
$(CC) $(CCOPT) -c $<
|
|
|
|
controls.o: controls.c controls.h Makefile
|
|
$(CC) $(CCOPT) -c $<
|
|
|
|
alguabeep.o: alguabeep.c process.h controls.h Makefile
|
|
$(CC) $(CCOPT) -c $<
|
|
|
|
alguabeep: process.o alguabeep.o funcs.o display.o controls.o
|
|
$(CC) $(CCOPT) $^ -lao -lv4l2 -lcurses -lm -lpthread -o $@
|
|
|
|
# -------------------------------------------------------
|
|
|
|
|
|
|
|
|