lainsafe/clainsafecli/Makefile

21 lines
352 B
Makefile

# clainsafecli makefile
TARGET = clainsafecli
OBJS = clainsafecli.o funcs.o
CC = cc
CFLAGSDEF = -MD -std=c11 -Wall -Wextra -lcurl
CFLAGS = -O2 -march=native
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) $(CFLAGSDEF) $(OBJS) -o $(TARGET)
%.o: %.c
$(CC) -c $(CFLAGS) $(CFLAGSDEF) $< -o $@
-include *.d
.PHONY: clean
clean:
rm -f *.d *.o clainsafecli