vgmstream/src/Makefile

39 lines
820 B
Makefile
Raw Normal View History

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