File: Makefile

package info (click to toggle)
tidy 20000113-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 576 kB
  • ctags: 971
  • sloc: ansic: 11,041; makefile: 47
file content (30 lines) | stat: -rw-r--r-- 654 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
# Makefile - for tidy

CC= gcc

CFLAGS= -O

OFILES=         attrs.o         istack.o        parser.o        tags.o \
		entities.o      lexer.o         pprint.o        clean.o \
		localize.o      config.o	tidy.o

CFILES=         attrs.c         istack.c        parser.c        tags.c \
		entities.c      lexer.c         pprint.c        clean.c \
		localize.c      config.c	tidy.c

HFILES=         platform.h html.h

tidy:		$(OFILES)
		$(CC) $(CFLAGS) -o tidy  $(OFILES) -lc

$(OFILES):	$(HFILES)  Makefile

tab2space:	tab2space.c
		$(CC) $(CFLAGS) -o tab2space tab2space.c -lc

all:		tidy tab2space

clean:
		rm -f $(OFILES) tab2space.o  tidy tab2space