Files
NoteWrapper/makefile
T

26 lines
466 B
Makefile

CC := gcc
VERSION := $(shell git describe --tags --always --dirty)
CFLAGS := -Wall -Wextra -O2 \
-DVERSION=\"$(VERSION)\" \
$(shell pkg-config --cflags libcjson ncurses)
LDFLAGS := $(shell pkg-config --libs libcjson ncurses)
SRC := src/main.c src/ui.c src/utils.c src/notes.c
TARGET := notewrapper
.PHONY: all run clean
all: $(TARGET)
$(TARGET):
$(CC) $(CFLAGS) $(SRC) -o $(TARGET) $(LDFLAGS)
run: $(TARGET)
./$(TARGET)
clean:
rm -f $(TARGET)