Last change
on this file since 5360:3dd9d1fd1b0e was
4748:d7be1c18ccb5,
checked in by phi, 13 years ago
|
updated configure script to honor LDFLAGS and added --opti to set optimizer level (Closes: #27)
|
File size:
722 bytes
|
Line | |
---|
1 | include ../Makefile.conf |
---|
2 | include ../Makefile.inc |
---|
3 | |
---|
4 | SLIB=libroarlight$(SHARED_SUFFIX) |
---|
5 | |
---|
6 | TARGETS=$(SLIB) libroarlight.a |
---|
7 | OBJS=libroarlight.o colors.o roardmx.o pwm.o |
---|
8 | |
---|
9 | #DEFINES = -DDEBUG |
---|
10 | INCLUDE = -I../include -I../include/libroarlight |
---|
11 | CFLAGS += -g -Wall $(Wextra) $(OPTI_O) $(DEFINES) $(INCLUDE) $(INCPATH) $(SHARED_CF) $(fPIC) |
---|
12 | LDFLAGS+= -g $(SHARED) -L../lib/ $(LDPATH) |
---|
13 | LIBS = $(LIBROARLIGHT_NS) |
---|
14 | |
---|
15 | all: ${TARGETS} |
---|
16 | rm -f ../lib/${SLIB} 2> /dev/null || true |
---|
17 | cp $(cp_v) ${TARGETS} ../lib/ |
---|
18 | clean: |
---|
19 | rm -f ${TARGETS} *.o |
---|
20 | new: clean all |
---|
21 | |
---|
22 | $(SLIB): ${OBJS} |
---|
23 | ${CC} ${LDFLAGS} -Wl,-soname,$(SLIB).$(LIBROARLIGHT_V) -o $(SLIB) ${OBJS} ${LIBS} |
---|
24 | libroarlight.a: ${OBJS} |
---|
25 | ${AR} cru libroarlight.a ${OBJS} |
---|
26 | ${RANLIB} libroarlight.a |
---|
Note: See
TracBrowser
for help on using the repository browser.