2021-12-11 14:26:39 +01:00
|
|
|
.POSIX:
|
2021-12-13 15:47:21 +01:00
|
|
|
.PHONY: all debug run clean
|
2021-12-19 12:47:39 +01:00
|
|
|
DEPS=src/main.o src/util.o src/gmp_setup.o
|
|
|
|
LIBS=-static -l:libgmp.a -l:libgc.a -l:libpthread.a
|
2021-12-13 15:47:21 +01:00
|
|
|
DBGFLAGS=-Og -g
|
|
|
|
DBGBIN=secd_debug
|
2021-12-11 14:26:39 +01:00
|
|
|
|
|
|
|
all: secd
|
|
|
|
|
|
|
|
secd: $(DEPS)
|
2021-12-19 12:47:39 +01:00
|
|
|
$(CC) $(CFLAGS) $(DEPS) $(LIBS) -o secd
|
2021-12-13 15:47:21 +01:00
|
|
|
|
|
|
|
$(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:
|
2021-12-19 12:47:39 +01:00
|
|
|
$(CC) -c $(INCLUDE) $(CFLAGS) $< -o $@
|