Skip to content

Commit

Permalink
Fix some of Makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
tadd committed Nov 26, 2024
1 parent b7b2697 commit 82530fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CFLAGS=-Wall -Wextra -O3 -fPIC $(XCFLAGS)
ANALYZE=-fanalyzer
LIB=libscary.so

all: $(LIB)
all: test

$(LIB): scary.o
testlib.o scary.o: scary.h
Expand All @@ -22,7 +22,7 @@ test: testlib
env LD_LIBRARY_PATH=. ./$<

testlib: testlib.c $(LIB)
$(CC) $(CFLAGS) -L. -lscary -lcriterion $^ -o $@
$(CC) $(CFLAGS) -L. $< -lscary -lcriterion -o $@

clean:
rm -f *.o *.so
Expand Down

0 comments on commit 82530fa

Please sign in to comment.