|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- #!/usr/bin/make -f
- # Makefile for lilv #
- # ----------------- #
- # Created by falkTX
- #
-
- CWD=../..
- MODULENAME=lilv
- include ../Makefile.mk
-
- # ---------------------------------------------------------------------------------------------------------------------
-
- SERD_VERSION = 0.24.0
- SORD_VERSION = 0.16.0
- SRATOM_VERSION = 0.6.0
- LILV_VERSION = 0.24.0
-
- # ---------------------------------------------------------------------------------------------------------------------
-
- BUILD_C_FLAGS += $(LILV_FLAGS) -Iconfig -w
-
- # ---------------------------------------------------------------------------------------------------------------------
-
- OBJS = $(OBJDIR)/serd.c.o $(OBJDIR)/sord.c.o $(OBJDIR)/sratom.c.o $(OBJDIR)/lilv.c.o
- OBJS_arm32 = $(OBJDIR)/serd.c.arm32.o $(OBJDIR)/sord.c.arm32.o $(OBJDIR)/sratom.c.arm32.o $(OBJDIR)/lilv.c.arm32.o
- OBJS_posix32 = $(OBJDIR)/serd.c.posix32.o $(OBJDIR)/sord.c.posix32.o $(OBJDIR)/sratom.c.posix32.o $(OBJDIR)/lilv.c.posix32.o
- OBJS_posix64 = $(OBJDIR)/serd.c.posix64.o $(OBJDIR)/sord.c.posix64.o $(OBJDIR)/sratom.c.posix64.o $(OBJDIR)/lilv.c.posix64.o
- OBJS_win32 = $(OBJDIR)/serd.c.win32.o $(OBJDIR)/sord.c.win32.o $(OBJDIR)/sratom.c.win32.o $(OBJDIR)/lilv.c.win32.o
- OBJS_win64 = $(OBJDIR)/serd.c.win64.o $(OBJDIR)/sord.c.win64.o $(OBJDIR)/sratom.c.win64.o $(OBJDIR)/lilv.c.win64.o
-
- # ---------------------------------------------------------------------------------------------------------------------
-
- all: $(MODULEDIR)/$(MODULENAME).a
- arm32: $(MODULEDIR)/$(MODULENAME).arm32.a
- posix32: $(MODULEDIR)/$(MODULENAME).posix32.a
- posix64: $(MODULEDIR)/$(MODULENAME).posix64.a
- win32: $(MODULEDIR)/$(MODULENAME).win32.a
- win64: $(MODULEDIR)/$(MODULENAME).win64.a
-
- # ---------------------------------------------------------------------------------------------------------------------
-
- clean:
- rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a
-
- debug:
- $(MAKE) DEBUG=true
-
- # ---------------------------------------------------------------------------------------------------------------------
-
- $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
- -@mkdir -p $(MODULEDIR)
- @echo "Creating $(MODULENAME).a"
- $(SILENT)rm -f $@
- $(SILENT)$(AR) crs $@ $^
-
- $(MODULEDIR)/$(MODULENAME).arm32.a: $(OBJS_arm32)
- -@mkdir -p $(MODULEDIR)
- @echo "Creating $(MODULENAME).arm32.a"
- $(SILENT)rm -f $@
- $(SILENT)$(AR) crs $@ $^
-
- $(MODULEDIR)/$(MODULENAME).posix32.a: $(OBJS_posix32)
- -@mkdir -p $(MODULEDIR)
- @echo "Creating $(MODULENAME).posix32.a"
- $(SILENT)rm -f $@
- $(SILENT)$(AR) crs $@ $^
-
- $(MODULEDIR)/$(MODULENAME).posix64.a: $(OBJS_posix64)
- -@mkdir -p $(MODULEDIR)
- @echo "Creating $(MODULENAME).posix64.a"
- $(SILENT)rm -f $@
- $(SILENT)$(AR) crs $@ $^
-
- $(MODULEDIR)/$(MODULENAME).win32.a: $(OBJS_win32)
- -@mkdir -p $(MODULEDIR)
- @echo "Creating $(MODULENAME).win32.a"
- $(SILENT)rm -f $@
- $(SILENT)$(AR) crs $@ $^
-
- $(MODULEDIR)/$(MODULENAME).win64.a: $(OBJS_win64)
- -@mkdir -p $(MODULEDIR)
- @echo "Creating $(MODULENAME).win64.a"
- $(SILENT)rm -f $@
- $(SILENT)$(AR) crs $@ $^
-
- # ---------------------------------------------------------------------------------------------------------------------
-
- $(OBJDIR)/serd.c.o: serd.c
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Iserd-$(SERD_VERSION) -c -o $@
-
- $(OBJDIR)/serd.c.%32.o: serd.c
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $< (32bit)"
- $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Iserd-$(SERD_VERSION) $(32BIT_FLAGS) -c -o $@
-
- $(OBJDIR)/serd.c.%64.o: serd.c
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $< (64bit)"
- $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Iserd-$(SERD_VERSION) $(64BIT_FLAGS) -c -o $@
-
- $(OBJDIR)/serd.c.arm32.o: serd.c
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $< (ARM32)"
- $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Iserd-$(SERD_VERSION) $(ARM32_FLAGS) -c -o $@
-
- # ---------------------------------------------------------------------------------------------------------------------
-
- $(OBJDIR)/sord.c.o: sord.c
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Isord-$(SORD_VERSION) -Isord-$(SORD_VERSION)/src -c -o $@
-
- $(OBJDIR)/sord.c.%32.o: sord.c
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $< (32bit)"
- $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Isord-$(SORD_VERSION) -Isord-$(SORD_VERSION)/src $(32BIT_FLAGS) -c -o $@
-
- $(OBJDIR)/sord.c.%64.o: sord.c
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $< (64bit)"
- $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Isord-$(SORD_VERSION) -Isord-$(SORD_VERSION)/src $(64BIT_FLAGS) -c -o $@
-
- $(OBJDIR)/sord.c.arm32.o: sord.c
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $< (ARM32)"
- $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Isord-$(SORD_VERSION) -Isord-$(SORD_VERSION)/src $(ARM32_FLAGS) -c -o $@
-
- # ---------------------------------------------------------------------------------------------------------------------
-
- $(OBJDIR)/sratom.c.o: sratom.c
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Isratom-$(SRATOM_VERSION) -c -o $@
-
- $(OBJDIR)/sratom.c.%32.o: sratom.c
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $< (32bit)"
- $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Isratom-$(SRATOM_VERSION) $(32BIT_FLAGS) -c -o $@
-
- $(OBJDIR)/sratom.c.%64.o: sratom.c
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $< (64bit)"
- $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Isratom-$(SRATOM_VERSION) $(64BIT_FLAGS) -c -o $@
-
- $(OBJDIR)/sratom.c.arm32.o: sratom.c
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $< (ARM32)"
- $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Isratom-$(SRATOM_VERSION) $(ARM32_FLAGS) -c -o $@
-
- # ---------------------------------------------------------------------------------------------------------------------
-
- $(OBJDIR)/lilv.c.o: lilv.c
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Ililv-$(LILV_VERSION) -Ililv-$(LILV_VERSION)/src -c -o $@
-
- $(OBJDIR)/lilv.c.%32.o: lilv.c
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $< (32bit)"
- $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Ililv-$(LILV_VERSION) -Ililv-$(LILV_VERSION)/src $(32BIT_FLAGS) -c -o $@
-
- $(OBJDIR)/lilv.c.%64.o: lilv.c
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $< (64bit)"
- $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Ililv-$(LILV_VERSION) -Ililv-$(LILV_VERSION)/src $(64BIT_FLAGS) -c -o $@
-
- $(OBJDIR)/lilv.c.arm32.o: lilv.c
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $< (ARM32)"
- $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -Ililv-$(LILV_VERSION) -Ililv-$(LILV_VERSION)/src $(ARM32_FLAGS) -c -o $@
-
- # ---------------------------------------------------------------------------------------------------------------------
-
- -include $(OBJS:%.o=%.d)
- -include $(OBJS_arm32:%.o=%.d)
- -include $(OBJS_posix32:%.o=%.d)
- -include $(OBJS_posix64:%.o=%.d)
- -include $(OBJS_win32:%.o=%.d)
- -include $(OBJS_win64:%.o=%.d)
-
- # ---------------------------------------------------------------------------------------------------------------------
|