-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile.mingw32
More file actions
39 lines (24 loc) · 825 Bytes
/
Makefile.mingw32
File metadata and controls
39 lines (24 loc) · 825 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
# Mingw-w64 win32 Makefile
CC = i686-w64-mingw32-gcc
CFLAGS = -O2 -Wall -Wextra -ffunction-sections -fdata-sections -static
LDFLAGS = -s -Wl,--gc-sections
all: hdparm.exe
hdparm.exe: hdparm.o
$(CC) -o hdparm.exe hdparm.o identify.o rawio.o shm.o timer.o $(LDFLAGS)
hdparm.o: identify.o rawio.o shm.o timer.o
$(CC) $(CFLAGS) -o hdparm.o -c hdparm.c
identify.o:
$(CC) $(CFLAGS) -o identify.o -c identify.c
rawio.o:
$(CC) $(CFLAGS) -o rawio.o -c ./win32/rawio.c
shm.o:
$(CC) $(CFLAGS) -o shm.o -c ./win32/shm.c
timer.o:
$(CC) $(CFLAGS) -o timer.o -c ./win32/timer.c
doc: hdparm.8.html hdparm.8.txt
hdparm.8.html: hdparm.8
man2html hdparm.8 | sed 1d > hdparm.8.html
hdparm.8.txt: hdparm.8
groff -man -Tascii -P'-bcou' < hdparm.8 > hdparm.8.txt
clean:
rm -f hdparm.exe *.o hdparm.8.html hdparm.8.txt