1234567891011121314151617181920212223242526 |
- PROJECT_ROOT = $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
- OBJS = androidmanifesteditor.o ResStringPool.o ResXMLTreeNode.o ResValue.o XMLNameSpace.o
- ifeq ($(BUILD_MODE),debug)
- CFLAGS += -g
- else ifeq ($(BUILD_MODE),run)
- CFLAGS += -O2
- else
- $(error Build mode $(BUILD_MODE) not supported by this Makefile)
- endif
- all: androidmanifesteditor
- androidmanifesteditor: $(OBJS)
- $(CXX) -o $@ $^
- %.o: $(PROJECT_ROOT)%.cpp
- $(CXX) -c $(CFLAGS) $(CXXFLAGS) $(CPPFLAGS) -o $@ $<
- %.o: $(PROJECT_ROOT)%.c
- $(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<
- clean:
- rm -fr androidmanifesteditor $(OBJS)
|