Add src/input.c

This commit is contained in:
PedroEdiaz
2024-09-13 01:23:57 +06:00
parent 6161d310bc
commit 15dc499cd9
2 changed files with 64 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ CFLAGS = \
-I./ext/glfw/include \
-Wall -Wno-unused-function -std=c89
all: $(DOC) $(BIN) $(LIB)
all: $(BIN) $(LIB)
$(BIN): $(OBJ) $(LIB)
$(CC) -lGL -lglfw -L. -o $(BIN) $(OBJ)
@@ -39,10 +39,13 @@ clean:
clean-all:
rm $(OBJ) $(DOC) $(LIB) $(BIN)
.SUFFIXES: .ms .pdf .c .o
.SUFFIXES: .ms .pdf .html .c .o
.ms.pdf:
cat $< | sed -e "s/^\s*//g" -e "/^$$/d" | groff -Tpdf -fC -ms > $@
cat $< | sed -e "s/^\s*//g" -e "/^$$/d" | tbl| groff -Tpdf -fC -ms > $@
.ms.html:
cat $< | sed -e "s/^\s*//g" -e "/^$$/d"| tbl | groff -Thtml -fC -ms > $@
.c.o:
$(CC) $(CFLAGS) $< -c -o $@