added gitignore

This commit is contained in:
nullifiedcat 2017-11-15 16:27:26 +03:00
parent ed36ff6ae8
commit e920724c8b
2 changed files with 9 additions and 3 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*.o
bin32/*
bin64/*

View File

@ -13,7 +13,7 @@ TARGET32=$(BIN32_DIR)/liboverlay.so
TARGET64=$(BIN64_DIR)/liboverlay.so
TARGET=undefined
.PHONY: clean directories
.PHONY: clean clean_objects directories
ifeq ($(ARCH),32)
CFLAGS+=-m32
@ -28,9 +28,9 @@ all:
mkdir -p $(BIN32_DIR)
mkdir -p $(BIN64_DIR)
ifndef ARCH
$(MAKE) clean
$(MAKE) clean_objects
$(MAKE) $(TARGET64) -e ARCH=64
$(MAKE) clean
$(MAKE) clean_objects
$(MAKE) $(TARGET32) -e ARCH=32
endif
@ -59,6 +59,9 @@ ftgl/makefont.o : CFLAGS+=-w
$(TARGET): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) $(LDLIBS) -o $@
clean_objects:
find . -type f -name '*.o' -delete
clean:
find . -type f -name '*.o' -delete
rm -f bin32/*.so