source: roaraudio/libroarlight/Makefile @ 2037:76f662d44f7e

Last change on this file since 2037:76f662d44f7e was 2037:76f662d44f7e, checked in by phi, 15 years ago

added $(NETLIBS)

File size: 726 bytes
Line 
1include ../Makefile.conf
2
3SLIB=libroarlight.so
4
5TARGETS=libroarlight.so 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
22libroarlight.so: ${OBJS}
23        ${CC} ${LDFLAGS} -o libroarlight.so ${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.