vgmstream/src/Makefile

42 lines
871 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
UTIL_SRCS = $(wildcard util/*.c)
UTIL_OBJS = $(patsubst %.c,%.o,$(UTIL_SRCS))
OBJECTS += $(UTIL_OBJS)
2014-08-03 01:10:45 +02:00
libvgmstream.a: $(OBJECTS)
$(AR) crs libvgmstream.a $(OBJECTS)
2021-08-07 12:33:25 +02:00
libvgmstream.so: $(OBJECTS)
$(LD) -shared -o libvgmstream.so $(OBJECTS)
#vgmstream-deps:
# $(CC) $(CFLAGS) -M -o vgmstream-deps
2014-08-03 01:10:45 +02:00
clean:
$(RMF) $(OBJECTS) libvgmstream.a
.PHONY: clean