aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--passgen.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 947ba94..6a6a2b7 100644
--- a/Makefile
+++ b/Makefile
@@ -4,11 +4,16 @@ PREFIX = $(HOME)/.local
CC = gcc
CFLAGS += -std=c99 -Wall -Wextra -Wshadow -pedantic
+CC_WIN32 = i686-w64-mingw32-gcc
+
default: $(NAME)
$(NAME): $(NAME).c config.h
$(CC) $(CFLAGS) -o $(NAME) $(NAME).c
+$(NAME).exe: $(NAME).c config.h
+ $(CC_WIN32) $(CFLAGS) -o $(NAME).exe $(NAME).c
+
install: $(NAME)
install -d $(DESTDIR)$(PREFIX)/bin/
install -m 755 $(NAME) $(DESTDIR)$(PREFIX)/bin/
diff --git a/passgen.c b/passgen.c
index 09193ae..ff587fc 100644
--- a/passgen.c
+++ b/passgen.c
@@ -27,7 +27,7 @@
#endif
#elif defined (USE_WINCRYPT)
# define WIN32_LEAN_AND_MEAN
-# include <Windows.h>
+# include <windows.h>
# include <wincrypt.h>
#else
# include <time.h>