add build target usb-enum

parent 33180743
......@@ -6,7 +6,7 @@ CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
GIT_VERSION = $(shell git describe --dirty --tags --all --long)
LIBNAME = liboasis-usb-att
all: lib testprog
all: lib testprog usb-enum
lib: $(LIBNAME).a $(LIBNAME).so
$(LIBNAME).a: $(OBJS)
......@@ -14,8 +14,10 @@ $(LIBNAME).a: $(OBJS)
$(LIBNAME).so: $(OBJS)
$(CC) $(CFLAGS) -shared -o $@ $^ $(LDFLAGS) $(LDLIBS)
usb-enum: usb-enum.o
usb-enum: LDLIBS += -ludev
testprog: test.o $(LIBNAME).a
$(CC) $(CFLAGS) $^ -o $@ $(LDLIBS) $(LDFLAGS)
clean:
rm -f *.a *.o *.so testprog
rm -f *.a *.o *.so testprog usb-enum
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment