vgmstream/src/Makefile

26 lines
467 B
Makefile
Raw Normal View History

#
# main vgmstream code
#
# automatically get all possible .o by finding all .c
OBJECTS =
#SRCS = $(wildcard **/*.c) #GNUMake 3.81?
SRCS = $(wildcard *.c) $(wildcard */*.c)
OBJECTS = $(patsubst %.c,%.o,$(SRCS))
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