| 1 | BOCA_PATH = ../../../.. |
| 2 | |
| 3 | include $(dir $(firstword $(MAKEFILE_LIST)))/$(BOCA_PATH)/Makefile-options |
| 4 | |
| 5 | OBJECTS = container.o container_find.o container_impl.o container_parse.o container_render.o field.o field_binary.o field_frames.o field_integer.o field_string_ascii.o field_string_unicode.o frame.o frame_impl.o frame_parse.o frame_render.o globals.o header.o header_frame.o header_tag.o helpers.o io.o io_decorators.o io_helpers.o misc_support.o mp3_parse.o spec.o tag.o tag_file.o tag_impl.o tag_parse.o tag_parse_lyrics3.o tag_parse_musicmatch.o tag_parse_v1.o tag_render.o utils.o |
| 6 | TARGET = libid3.a |
| 7 | |
| 8 | CCOPTS = -I"$(SRCDIR)" -DHAVE_CONFIG_H -DID3LIB_LINKOPTION=LINKOPTION_STATIC |
| 9 | AR = ar |
| 10 | |
| 11 | ifeq ($(USE_BUNDLED_ZLIB),True) |
| 12 | CCOPTS += -I"$(SRCDIR)"/../zlib |
| 13 | endif |
| 14 | |
| 15 | ifneq ($(BUILD_WIN32),True) |
| 16 | CCOPTS += -fPIC |
| 17 | endif |
| 18 | |
| 19 | all: $(TARGET) |
| 20 | |
| 21 | $(TARGET): $(OBJECTS) |
| 22 | $(AR) rs $@ $(OBJECTS) |
| 23 | |
| 24 | clean: |
| 25 | rm -f $(TARGET) $(OBJECTS) |
| 26 | |
| 27 | .cpp.o: |
| 28 | $(CXX) $(CCOPTS) $(CXXFLAGS) -c $< -o $@ |