summaryrefslogtreecommitdiff
path: root/Makefile
blob: 8fea044ad498b578c05846ef8e086c53efde4d20 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CFLAGS += -O2 -Wall -Wextra -Wpedantic
CPPFLAGS += -MMD -MP
LDFLAGS += -llua -lcurl -ljson-c

TARGET := stonks

SRC := $(wildcard *.c)
OBJ := $(SRC:.c=.o)
DEP := $(OBJ:.o=.d)

all: $(TARGET)

$(TARGET): $(OBJ)

clean:
	rm -f $(TARGET) $(OBJ) $(DEP)

-include $(DEP)

.PHONY: all clean