redquark-amiberry-rb/src/guisan/Makefile
Dimitris Panokostas 419cd5592d Reworked VSLinux solution, added Guisan project
Moved 7z/Archive/7z files to 7z/ folder for simplicity
2017-03-30 23:00:20 +02:00

23 lines
463 B
Makefile

TARGET = lib/libguisan.a
AR = ar
DIRS =$(shell find ./src -maxdepth 3 -type d)
SOURCE = $(foreach dir,$(DIRS),$(wildcard $(dir)/*.cpp))
OBJS = $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(SOURCE)))
INCLUDE =-I./include `sdl2-config --cflags --libs`
CFLAGS = -g -w -O3 $(INCLUDE)
CXXFLAGS= $(CFLAGS)
.PHONY : all clean
$(TARGET) : $(OBJS)
$(AR) cr $(TARGET) $(OBJS)
all : $(TARGET)
clean :
find . -name *.o |xargs rm -f
rm -rf $(TARGET)