Skip to content

Commit 7093da6

Browse files
committed
Add: Makefile
1 parent 31bdce4 commit 7093da6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
TARGET = genpass
2+
3+
CC = gcc
4+
CFLAGS = -Wall -Wextra -Iincludes
5+
6+
SRC = src/main.c src/genpass.c src/strings.c src/copyclip.c
7+
OBJ = $(SRC:.c=.o)
8+
9+
$(TARGET): $(OBJ)
10+
$(CC) $(CFLAGS) -o $@ $^
11+
12+
%.o: %.c
13+
$(CC) $(CFLAGS) -c $< -o $@
14+
15+
clean:
16+
rm -f $(OBJ) $(TARGET)
17+
18+

0 commit comments

Comments
 (0)