2018-01-07 20:13:20 +01:00
|
|
|
#
|
|
|
|
# main vgmstream code
|
|
|
|
#
|
|
|
|
|
|
|
|
# automatically get all possible .o by finding all .c
|
|
|
|
OBJECTS =
|
|
|
|
|
2023-05-07 22:00:04 +02:00
|
|
|
#SRCS = $(wildcard **/*.c) #GNUMake 3.81?
|
|
|
|
SRCS = $(wildcard *.c) $(wildcard */*.c)
|
|
|
|
OBJECTS = $(patsubst %.c,%.o,$(SRCS))
|
2017-04-28 18:33:33 +02:00
|
|
|
|
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)
|
|
|
|
|
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
|