redquark-amiberry-rb/external/libguisan/Makefile
Dimitris Panokostas e12f430bd0 Reorganized externa library dependencies
- Added external directory
- Moved capsimg submodule into external, updated references
- Moved guisan into external, updated references
- Added libxml2 into external, updated Android.mk references
- Added libmpeg2 into external (not used yet)
2019-10-22 21:10:18 +02:00

23 lines
459 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)))
DEPS = $(SOURCE:%.cpp=%.d)
CPPFLAGS +=-I./include $(SDL_CFLAGS) -MD -MT $@ -MF $(@:%.o=%.d)
.PHONY : all clean
$(TARGET) : $(OBJS)
$(AR) cr $(TARGET) $(OBJS)
all : $(TARGET)
clean :
rm -f $(OBJS) $(DEPS)
rm -f $(TARGET)
-include $(DEPS)