[go: up one dir, main page]

File: Makefile

package info (click to toggle)
dosfstools 1.0-15
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 200 kB
  • ctags: 245
  • sloc: ansic: 2,215; makefile: 108
file content (31 lines) | stat: -rw-r--r-- 734 bytes parent folder | download
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
CC=gcc
CPP=$(CC) -E
CFLAGS=-Wall -Wno-parentheses
LDFLAGS=
OBJS=boot.o check.o common.o dosfsck.o fat.o file.o io.o

dosfsck:	$(OBJS)
		$(CC) -o dosfsck $(LDFLAGS) $(OBJS)

.c.o:
		$(CC) -c $(CFLAGS) $*.c

clean:
		rm -f *.o tmp_make dosfsck

spotless:	clean
		rm -f dosfsck

dep:
		sed '/\#\#\# Dependencies/q' <Makefile >tmp_make
		$(CPP) $(CFLAGS) -MM *.c >>tmp_make
		mv tmp_make Makefile

### Dependencies
boot.o : boot.c common.h dosfsck.h io.h boot.h 
check.o : check.c common.h dosfsck.h io.h fat.h file.h check.h 
common.o : common.c common.h 
dosfsck.o : dosfsck.c common.h dosfsck.h io.h boot.h fat.h file.h check.h 
fat.o : fat.c common.h dosfsck.h io.h fat.h 
file.o : file.c file.h 
io.o : io.c dosfsck.h common.h io.h