Skip to content
Snippets Groups Projects
Commit e0748810 authored by deuce's avatar deuce
Browse files

Also create a static lib.

parent 13a5d143
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,11 @@ $(WRAPTEST): $(ODIR)/wraptest.o $(OBJS)
@echo Linking $@
@$(CC) $(CFLAGS) -o $@ $(LFLAGS) $^
lib: $(ODIR)/libxpdev.so
lib: $(ODIR)/libxpdev.so $(ODIR)/libxpdev.a
$(ODIR)/libxpdev.so: $(OBJS)
gcc -shared $(OBJS) -o $(ODIR)/libxpdev.so
$(ODIR)/libxpdev.a: $(OBJS)
ar -r $(ODIR)/libxpdev.a $(OBJS)
ranlib $(ODIR)/libxpdev.a
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment