1
0
mirror of git://projects.qi-hardware.com/antorcha.git synced 2025-04-21 12:27:27 +03:00

tools/libtxt/: create library instead of executable

This commit is contained in:
Werner Almesberger
2012-06-30 12:52:01 -03:00
parent 758d9e7fc4
commit 350283375c
2 changed files with 5 additions and 50 deletions

View File

@@ -11,7 +11,7 @@
#
MAIN = libtxt.a
LIB = libtxt.a
CFLAGS = -g -Wall
@@ -19,13 +19,13 @@ OBJS = edit.o font.o
.PHONY: all clean spotless
all: $(MAIN)
all: $(LIB)
$(MAIN): $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS)
$(LIB): $(OBJS)
$(AR) cr $@ $^
clean:
rm -f $(OBJS)
spotless: clean
rm -f $(MAIN)
rm -f $(LIB)