blob: 4dd69343f824f4602f8269cfed9291efa3c99d57 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
NAME = passgen
PREFIX = $(HOME)/.local
CC = gcc
CFLAGS += -std=c99 -Wall -Wextra -Wshadow -pedantic
CC_WIN32 = i686-w64-mingw32-gcc
CC_WATCOM_CL = wcl
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
$(NAME).com: $(NAME).c config.h
$(CC_WATCOM_CL) -bcl=dos -fe=$(NAME).com -za99 -mt -lr $(NAME).c
install: $(NAME)
install -d $(DESTDIR)$(PREFIX)/bin/
install -m 755 $(NAME) $(DESTDIR)$(PREFIX)/bin/
clean:
rm -f *.o
rm -f $(NAME)
|