3 include $(TOPDIR
)/rules.mk
6 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
8 EXTRA_CFLAGS
:= -c
-I.
-I..
/include
14 $(PKG_BUILD_DIR
)/$(1): $(PKG_BUILD_DIR
)
15 $(TARGET_CC
) $(TARGET_CFLAGS
) $(EXTRA_CFLAGS
) -o
$$@
$$(patsubst %.o
,%.c
,$(1))
16 LIBSHARED_OBJS
+= $(PKG_BUILD_DIR
)/$(1)
19 OBJS
:= shutils.o wl.o wl_linux.o defaults.o linux_timer.o
20 $(foreach obj
,$(OBJS
),$(eval
$(call OBJ_template
,$(obj
))))
24 mkdir
-p
$(PKG_BUILD_DIR
)
26 $(PKG_BUILD_DIR
)/libshared.so
: $(LIBSHARED_OBJS
)
27 $(TARGET_CC
) -shared
-o
$@
$^
29 $(TARGET_DIR
)/usr
/lib
/libshared.so
: $(PKG_BUILD_DIR
)/libshared.so
31 install -m
644 $^
$(STAGING_DIR
)/lib
/libshared.so
34 compile
: $(PKG_BUILD_DIR
)/libshared.so
35 install: $(TARGET_DIR
)/usr
/lib
/libshared.so
38 rm -rf
$(PKG_BUILD_DIR
)