|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- #!/usr/bin/make -f
- # Makefile for rtmempool #
- # ---------------------- #
- # Created by falkTX
- #
-
- include ../../Makefile.mk
-
- # --------------------------------------------------------------
-
- BUILD_C_FLAGS += $(RTMEMPOOL_FLAGS) -I. -I../../includes
- LINK_FLAGS += $(RTMEMPOOL_LIBS)
-
- ifeq ($(CARLA_PLUGIN_SUPPORT),true)
- BUILD_C_FLAGS += -DWANT_LV2
- endif
-
- OBJS = rtmempool.c.o
- OBJS_posix32 = rtmempool.c.posix32.o
- OBJS_posix64 = rtmempool.c.posix64.o
- OBJS_win32 = rtmempool.c.win32.o
- OBJS_win64 = rtmempool.c.win64.o
-
- # --------------------------------------------------------------
-
- all: ../rtmempool.a
-
- posix32: ../rtmempool.posix32.a
- posix64: ../rtmempool.posix64.a
- win32: ../rtmempool.win32.a
- win64: ../rtmempool.win64.a
-
- # --------------------------------------------------------------
-
- ../rtmempool.a: $(OBJS)
- $(RM) $@
- $(AR) crs $@ $^
-
- ../rtmempool.posix32.a: $(OBJS_posix32)
- $(RM) $@
- $(AR) crs $@ $^
-
- ../rtmempool.posix64.a: $(OBJS_posix64)
- $(RM) $@
- $(AR) crs $@ $^
-
- ../rtmempool.win32.a: $(OBJS_win32)
- $(RM) $@
- $(AR) crs $@ $^
-
- ../rtmempool.win64.a: $(OBJS_win64)
- $(RM) $@
- $(AR) crs $@ $^
-
- ../librtmempool.dll: $(OBJS)
- $(CC) $^ -shared $(LINK_FLAGS) -o $@
-
- ../librtmempool.dylib: $(OBJS)
- $(CC) $^ -dynamiclib $(LINK_FLAGS) -o $@
-
- ../librtmempool.so: $(OBJS)
- $(CC) $^ -shared $(LINK_FLAGS) -o $@
-
- # --------------------------------------------------------------
-
- %.c.o: %.c
- $(CC) $< $(BUILD_C_FLAGS) -c -o $@
-
- %.c.posix32.o: %.c
- $(CC) $< $(BUILD_C_FLAGS) $(32BIT_FLAGS) -c -o $@
-
- %.c.posix64.o: %.c
- $(CC) $< $(BUILD_C_FLAGS) $(64BIT_FLAGS) -c -o $@
-
- %.c.win32.o: %.c
- $(CC) $< $(BUILD_C_FLAGS) $(32BIT_FLAGS) -c -o $@
-
- %.c.win64.o: %.c
- $(CC) $< $(BUILD_C_FLAGS) $(64BIT_FLAGS) -c -o $@
-
- # --------------------------------------------------------------
-
- clean:
- $(RM) *.o ../rtmempool*.a ../librtmempool.*
-
- debug:
- $(MAKE) DEBUG=true
-
- # --------------------------------------------------------------
|