secd/Makefile

27 lines
364 B
Makefile
Raw Normal View History

2021-12-11 14:26:39 +01:00
.POSIX:
.PHONY: all debug run clean
2021-12-11 14:26:39 +01:00
DEPS=src/main.o src/util.o
LIBS=-lgc
DBGFLAGS=-Og -g
DBGBIN=secd_debug
2021-12-11 14:26:39 +01:00
all: secd
secd: $(DEPS)
$(CC) $(LIBS) $(CFLAGS) $(DEPS) -o secd
$(DBGBIN): $(DEPS)
$(CC) $(LIBS) $(DBGFLAGS) -DENABLE_DBG_H -o secd_debug
debug: $(DBGBIN)
2021-12-11 14:26:39 +01:00
run: secd
@./secd
clean:
rm -f $(DEPS)
.SUFFIXES: .c .o
.c.o:
$(CC) -c $(CFLAGS) $< -o $@