include ../.config

#LDFLAGS += --static

OBJS :=  hotplug.o 
CFLAGS += -I$(NVRAM_PATH)
LDFLAGS += -L$(NVRAM_PATH) -lnvram

.c.o:
	$(CC) $(CFLAGS) -c $<

all: hotplug

clean:
	rm -f *.o *~ hotplug .*.depend

install: hotplug
	install -d $(TARGET)/sbin
	install hotplug $(TARGET)/sbin
	$(STRIP) $(TARGET)/sbin/hotplug

hotplug: $(OBJS)
	$(CC) -o $@ $^ $(LDFLAGS)
