vgmstream/src/Makefile
2024-01-20 14:35:50 +01:00

26 lines
487 B
Makefile

#
# main vgmstream code
#
# automatically get all possible .o by finding all .c
OBJECTS =
#SRCS = $(wildcard **/*.c) #GNUMake 3.81?
SRCS = $(wildcard *.c) $(wildcard */*.c) $(wildcard */*/*.c)
OBJECTS = $(patsubst %.c,%.o,$(SRCS))
libvgmstream.a: $(OBJECTS)
$(AR) crs libvgmstream.a $(OBJECTS)
libvgmstream.so: $(OBJECTS)
$(LD) -shared -o libvgmstream.so $(OBJECTS)
#vgmstream-deps:
# $(CC) $(CFLAGS) -M -o vgmstream-deps
clean:
$(RMF) $(OBJECTS) libvgmstream.a
.PHONY: clean