source: roaraudio/libroarlight/Makefile @ 2050:2a4791050950

Last change on this file since 2050:2a4791050950 was 2050:2a4791050950, checked in by phi, 15 years ago

use $SHARED_SUFFIX in most important makefiles

File size: 715 bytes
Line 
1include ../Makefile.conf
2
3SLIB=libroarlight$(SHARED_SUFFIX)
4
5TARGETS=$(SLIB) libroarlight.a
6OBJS=libroarlight.o colors.o roardmx.o pwm.o
7
8#DEFINES        = -DDEBUG
9INCLUDE = -I../include -I../include/libroarlight
10CFLAGS += -g -Wall -O2 $(DEFINES) $(INCLUDE) $(INCPATH) $(SHARED_CF) $(fPIC)
11LDFLAGS = -g $(SHARED) -L../lib/ $(LDPATH)
12NETLIBS = $(lib_dnet) $(lib_wsock32) $(lib_ws2_32)
13LIBS    = -lroar $(lib_dnet) $(lib_m) $(NETLIBS)
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
22$(SLIB): ${OBJS}
23        ${CC} ${LDFLAGS} -o $(SLIB) ${OBJS} $(LIBS)
24libroarlight.a: ${OBJS}
25        ${AR} cru libroarlight.a ${OBJS}
26        ${RANLIB} libroarlight.a
Note: See TracBrowser for help on using the repository browser.