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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user