Initial commit

This commit is contained in:
Nate Choe
2022-01-22 02:44:45 -06:00
commit ad64e4ecb2
15 changed files with 1602 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)))
LIBS =
CFLAGS := -pipe -Wall -Wpedantic -Werror
CFLAGS += -Isrc/include -pthread -ggdb
INSTALLDIR := /usr/bin
OUT = swebs
build/$(OUT): $(OBJ)
$(CC) $(OBJ) -o build/$(OUT) $(LIBS)
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)