Skip to content

Commit

Permalink
Added liblist.a
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Aug 14, 2010
1 parent b8cf3c4 commit 0697dd9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

AR = ar
CC = gcc
CFLAGS = -O3 -std=c99 -Wall

Expand All @@ -8,7 +9,11 @@ SRCS = src/list.c \

OBJS = $(SRCS:.c=.o)

all: bin/test
all: build/liblist.a

build/liblist.a: $(OBJS)
@mkdir -p build
$(AR) rcs $@ $^

bin/test: test.o $(OBJS)
@mkdir -p bin
Expand All @@ -22,9 +27,7 @@ bin/benchmark: benchmark.o $(OBJS)
$(CC) $< $(CFLAGS) -c -o $@

clean:
rm -fr bin
rm -f *.o
rm -f src/*.o
rm -fr bin build *.o src/*.o

test: bin/test
@./$<
Expand Down

0 comments on commit 0697dd9

Please sign in to comment.