mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2025-12-12 18:28:50 +01:00
28 lines
506 B
Makefile
28 lines
506 B
Makefile
CC = gcc
|
|
|
|
CFLAGS = -O0 -g -Wall
|
|
LDFLAGS =
|
|
INCLUDES = -I /usr/include/freetype2
|
|
LIBS = -lwiringPi -lm -lcrypt -lpthread -lfreetype -lrt
|
|
|
|
MAIN = devterm_thermal_printer.elf
|
|
|
|
SRCS = printer.c devterm_thermal_printer.c utils.c ftype.c utf8-utils.c
|
|
OBJS = $(SRCS:.c=.o)
|
|
|
|
.PHONY: depend clean
|
|
|
|
all: $(MAIN)
|
|
@echo compile $(MAIN)
|
|
|
|
$(MAIN): $(OBJS)
|
|
$(CC) $(CFLAGS) $(INCLUDES) -o $(MAIN) $(OBJS) $(LFLAGS) $(LIBS)
|
|
|
|
.c.o:
|
|
$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
|
|
|
|
clean:
|
|
$(RM) *.o *~ $(MAIN)
|
|
|
|
|