SHARED_INCLUDE:=${shell pwd}/include
SHARED_INCLUDE:=${shell pwd}/include
-libshared-compile libnvram-compile wlc-compile:
+libshared-compile libnvram-compile:
@$(MAKE) -C $(patsubst %-compile,%,$@) compile
@$(MAKE) -C $(patsubst %-compile,%,$@) compile
-libshared-install libnvram-install wlc-install:
+libshared-install libnvram-install: libshared-compile libnvram-compile
@$(MAKE) -C $(patsubst %-install,%,$@) install
libshared-clean libnvram-clean wlc-clean:
@$(MAKE) -C $(patsubst %-install,%,$@) install
libshared-clean libnvram-clean wlc-clean:
mkdir -p $(PKG_IPK_DIR)/sbin
$(TARGET_CC) -o $@ $<
mkdir -p $(PKG_IPK_DIR)/sbin
$(TARGET_CC) -o $@ $<
-$(PKG_IPK_DIR)/usr/sbin/wlc: wlc.c libshared-compile
+$(PKG_IPK_DIR)/usr/sbin/wlc: wlc.c libshared-install
mkdir -p $(PKG_IPK_DIR)/usr/sbin
$(TARGET_CC) -o $@ $< -lshared -L./libshared -I$(SHARED_INCLUDE)
mkdir -p $(PKG_IPK_DIR)/usr/sbin
$(TARGET_CC) -o $@ $< -lshared -L./libshared -I$(SHARED_INCLUDE)