Initial commit

This commit is contained in:
Nate Choe
2022-04-21 11:58:52 -05:00
commit a0adfafed3
10 changed files with 1274 additions and 0 deletions

19
Makefile Normal file
View File

@@ -0,0 +1,19 @@
SRC = $(wildcard src/*.c)
OBJ = $(subst .c,.o,$(subst src,work,$(SRC)))
LDFLAGS =
CFLAGS := -O2 -pipe -Wall -Wpedantic -Wshadow -ansi
CFLAGS += -Isrc/include/
INSTALLDIR := /usr/bin/
OUT = ncdg
build/$(OUT): $(OBJ)
$(CC) $(OBJ) -o build/$(OUT) $(LDFLAGS)
work/%.o: src/%.c $(wildcard src/include/*.h)
$(CC) $(CFLAGS) $< -c -o $@
install: build/$(OUT)
cp build/$(OUT) $(INSTALLDIR)/$(OUT)
uninstall: $(INSTALLDIR)/$(OUT)
rm $(INSTALLDIR)/$(OUT)