Compare commits

..

No commits in common. "9495b29325b2c7166f33b17400e2e04d439b1c5b" and "9435e17d7d15873c15261ec647862f0af7120c82" have entirely different histories.

7 changed files with 10 additions and 23 deletions

5
.gitignore vendored
View file

@ -1,4 +1,3 @@
**/*.o
**/*.exe
examples/log.txt
compile_commands.json
**/*.o
test/log.txt

View file

@ -1,25 +1,13 @@
.PHONY: examples
GEARLIB_SRC=src
GEARLIB_LIB=$(GEARLIB_SRC)/libgearlib.a
GEARLIB_HEADER=$(GEARLIB_SRC)/gearlib.h
gearlib:
all:
$(MAKE) -C src
examples:
$(MAKE) -C examples all
all: gearlib examples
install: gearlib
cp $(GEARLIB_LIB) /usr/local/lib
cp $(GEARLIB_HEADER) /usr/local/include
$(MAKE) -C test clean
$(MAKE) -C test simple.o
./test/simple.o
bear: clean
bear -- $(MAKE) all
bear -- $(MAKE)
clean:
$(MAKE) -C src clean
$(MAKE) -C examples clean
$(MAKE) -C test clean
rm -rf compile_commands.txt

Binary file not shown.

View file

@ -2,9 +2,9 @@ CFLAGS=-O3 -I../src
LDFLAGS=-L../src -lgearlib $(shell pkg-config --libs glfw3)
CFILES=$(shell find -L * -type f -name '*.c')
OBJ=$(CFILES:.c=.exe)
OBJ=$(CFILES:.c=.o)
%.exe: %.c
%.o: %.c
$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@
all: $(OBJ)