Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

Commit

Permalink
Update Makefile with new naming
Browse files Browse the repository at this point in the history
  • Loading branch information
allenvox authored May 18, 2024
1 parent 842b36b commit a1afab5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
CFLAGS = -Wall -Wextra -I src -MMD
DIRGUARD = @mkdir -p $(@D)

all: bin/pawg
all: bin/pwgen
-include obj/*.d

bin/pawg: obj/main.o obj/libpawg.a
bin/pwgen: obj/main.o obj/libpwgen.a
$(DIRGUARD)
gcc $(CFLAGS) -o $@ $^

Expand All @@ -17,15 +17,15 @@ clean:
rm -rf obj/ bin/

.PHONY: test
test: bin/pawg-test
test: bin/pwgen-test

bin/pawg-test: obj/test/main.o obj/test/test.o obj/libpawg.a
bin/pwgen-test: obj/test/main.o obj/test/test.o obj/libpwgen.a
$(DIRGUARD)
gcc $(CFLAGS) -o $@ $^

obj/test/%.o: test/%.c
$(DIRGUARD)
gcc $(CFLAGS) -I thirdparty -c -o $@ $<

obj/libpawg.a: obj/alphabetic.o obj/random.o obj/hash.o obj/sha1.o obj/input.o obj/password.o
ar rcs $@ $^
obj/libpwgen.a: obj/alphabetic.o obj/random.o obj/hash.o obj/sha1.o obj/input.o obj/password.o
ar rcs $@ $^

0 comments on commit a1afab5

Please sign in to comment.