2017-04-28 18:33:33 +02:00
|
|
|
# get all .c to find all possible .o
|
|
|
|
SRC_SRCS = $(wildcard *.c)
|
|
|
|
SRC_OBJS = $(patsubst %.c,%.o,$(SRC_SRCS))
|
2014-08-02 19:10:45 -04:00
|
|
|
|
2017-04-28 18:33:33 +02:00
|
|
|
CODING_SRCS = $(wildcard coding/*.c)
|
|
|
|
CODING_OBJS = $(patsubst %.c,%.o,$(CODING_SRCS))
|
2014-08-02 19:10:45 -04:00
|
|
|
|
2017-04-28 18:33:33 +02:00
|
|
|
LAYOUT_SRCS = $(wildcard layout/*.c)
|
|
|
|
LAYOUT_OBJS = $(patsubst %.c,%.o,$(LAYOUT_SRCS))
|
2014-08-02 19:10:45 -04:00
|
|
|
|
2017-04-28 18:33:33 +02:00
|
|
|
META_SRCS = $(wildcard meta/*.c)
|
|
|
|
META_OBJS = $(patsubst %.c,%.o,$(META_SRCS))
|
2016-06-28 00:20:37 -07: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))
|
|
|
|
|
|
|
|
OBJECTS = $(SRC_OBJS) $(CODING_OBJS) $(LAYOUT_OBJS) $(META_OBJS) $(EXT_LIBS_OBJS)
|
2014-08-02 19:10:45 -04:00
|
|
|
|
|
|
|
libvgmstream.a: $(OBJECTS)
|
|
|
|
$(AR) crs libvgmstream.a $(OBJECTS)
|
|
|
|
|
|
|
|
vgmstream-deps:
|
|
|
|
$(CC) $(CFLAGS) -M -o vgmstream-deps
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJECTS) libvgmstream.a
|