CC/rxi/log/Makefile

20 lines
339 B
Makefile
Raw Normal View History

2023-12-31 03:21:59 +03:00
PROGRAM = example_log
OBJ = example_log.o log.o
HEADER = -I./3rdparty/log.c/src
OUT =
CC = gcc
CFLAGS = -O2 -g -Wall $(HEADER)
LFLAGS =
LIBS =
all: $(PROGRAM)
$(PROGRAM): $(OBJ)
$(CC) $(CFLAGS) -o $@ $(OBJ)
log.o:
$(CC) $(CFLAGS) -c -DLOG_USE_COLOR -o $@ ./3rdparty/log.c/src/log.c
clean:
rm -f $(OBJ) $(PROGRAM)