2018-01-07 20:13:20 +01:00
|
|
|
#
|
|
|
|
# main vgmstream code
|
|
|
|
#
|
|
|
|
|
|
|
|
# automatically get all possible .o by finding all .c
|
|
|
|
OBJECTS =
|
|
|
|
|
2017-04-28 18:33:33 +02:00
|
|
|
SRC_SRCS = $(wildcard *.c)
|
|
|
|
SRC_OBJS = $(patsubst %.c,%.o,$(SRC_SRCS))
|
2018-01-07 20:13:20 +01:00
|
|
|
OBJECTS += $(SRC_OBJS)
|
2014-08-03 01:10:45 +02:00
|
|
|
|
2017-04-28 18:33:33 +02:00
|
|
|
CODING_SRCS = $(wildcard coding/*.c)
|
|
|
|
CODING_OBJS = $(patsubst %.c,%.o,$(CODING_SRCS))
|
2018-01-07 20:13:20 +01:00
|
|
|
OBJECTS += $(CODING_OBJS)
|
2014-08-03 01:10:45 +02:00
|
|
|
|
2017-04-28 18:33:33 +02:00
|
|
|
LAYOUT_SRCS = $(wildcard layout/*.c)
|
|
|
|
LAYOUT_OBJS = $(patsubst %.c,%.o,$(LAYOUT_SRCS))
|
2018-01-07 20:13:20 +01:00
|
|
|
OBJECTS += $(LAYOUT_OBJS)
|
2014-08-03 01:10:45 +02:00
|
|
|
|
2017-04-28 18:33:33 +02:00
|
|
|
META_SRCS = $(wildcard meta/*.c)
|
|
|
|
META_OBJS = $(patsubst %.c,%.o,$(META_SRCS))
|
2018-01-07 20:13:20 +01:00
|
|
|
OBJECTS += $(META_OBJS)
|
2016-06-28 09:20:37 +02:00
|
|
|
|
2017-04-28 18:33:33 +02:00
|
|
|
EXT_LIBS_SRCS = $(wildcard ../ext_libs/*.c)
|
|
|
|
EXT_LIBS_OBJS = $(patsubst %.c,%.o,$(EXT_LIBS_SRCS))
|
2018-01-07 20:13:20 +01:00
|
|
|
OBJECTS += $(EXT_LIBS_OBJS)
|
2017-04-28 18:33:33 +02:00
|
|
|
|
2014-08-03 01:10:45 +02:00
|
|
|
|
|
|
|
libvgmstream.a: $(OBJECTS)
|
|
|
|
$(AR) crs libvgmstream.a $(OBJECTS)
|
|
|
|
|
2018-01-07 20:13:20 +01:00
|
|
|
#vgmstream-deps:
|
|
|
|
# $(CC) $(CFLAGS) -M -o vgmstream-deps
|
2014-08-03 01:10:45 +02:00
|
|
|
|
|
|
|
clean:
|
2018-01-07 20:13:20 +01:00
|
|
|
$(RMF) $(OBJECTS) libvgmstream.a
|
|
|
|
|
|
|
|
.PHONY: clean
|