source: roaraudio/libroarmidi/Makefile @ 3752:0e8d130d03a0

Last change on this file since 3752:0e8d130d03a0 was 3752:0e8d130d03a0, checked in by phi, 14 years ago

test if compiler supports -Wextra

File size: 682 bytes
RevLine 
[1930]1include ../Makefile.conf
[2381]2include ../Makefile.inc
[1930]3
[2050]4SLIB=libroarmidi$(SHARED_SUFFIX)
[1930]5
[2050]6TARGETS=$(SLIB) libroarmidi.a
[1930]7OBJS=libroarmidi.o
8
9#DEFINES        = -DDEBUG
10INCLUDE = -I../include -I../include/libroarmidi
[3752]11CFLAGS += -g -Wall $(Wextra) -O2 $(DEFINES) $(INCLUDE) $(INCPATH) $(SHARED_CF) $(fPIC)
[1930]12LDFLAGS = -g $(SHARED) -L../lib/ $(LDPATH)
[2381]13LIBS    = $(LIBROARMIDI_NS)
[1930]14
15all: ${TARGETS}
16        rm -f ../lib/${SLIB} 2> /dev/null || true
17        cp $(cp_v) ${TARGETS} ../lib/
18clean:
19        rm -f ${TARGETS} *.o
20new: clean all
21
[2050]22$(SLIB): ${OBJS}
[3629]23        ${CC} ${LDFLAGS} -Wl,-soname,$(SLIB).$(LIBROARMIDI_V) -o $(SLIB) ${OBJS} ${LIBS}
[1930]24libroarmidi.a: ${OBJS}
25        ${AR} cru libroarmidi.a ${OBJS}
26        ${RANLIB} libroarmidi.a
Note: See TracBrowser for help on using the repository browser.