Changeset 5994

Show
Ignore:
Timestamp:
04/01/10 16:57:53 (3 years ago)
Author:
Cyrus
Message:

libubox: Fix and cleanup Makefile

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci2/libubox/Makefile

    r5842 r5994  
    33CFLAGS+=-I./include --std=gnu99 -Wall -Werror -pedantic -fno-strict-aliasing -fpic 
    44LDFLAGS?= 
    5 BINARY=libubox.so 
    6 BINARY=libuloop.so 
    75 
    8 all: $(BINARY) 
     6all: libubox.so libuloop.so 
    97 
    108libubox.so: ucix.c blob.c hash.c uhtbl.c ulog.c 
    11     $(CC) $(CFLAGS) -g -o $@ -shared -Wl,-soname,libubox.so $^ -luci 
     9    $(CC) $(CFLAGS) -o $@ -shared -Wl,-soname,libubox.so $^ -luci 
    1210 
    1311libuloop.so: uloop.c 
    14     $(CC) $(CFLAGS) -g -o $@ -shared -Wl,-soname,libuloop.so $^ -lubus -I../ubus/ -I./ 
     12    $(CC) $(CFLAGS) -o $@ -shared -Wl,-soname,libuloop.so $^ -lubus -I../ubus/ -I./ 
    1513 
    1614clean: 
    17     rm -f $(BINARY) *.o 
     15    rm -f *.so *.o 
    1816 
    19 %.o: $(wildcard *.h) 
    20 %.o: %.c 
    21     $(CC) $(CFLAGS) -c -o $@ $^