File: makefile

package info (click to toggle)
htp 1.11-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 316 kB
  • ctags: 429
  • sloc: ansic: 5,108; makefile: 55
file content (42 lines) | stat: -rw-r--r-- 676 bytes parent folder | download | duplicates (2)
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
40
41
42
#
# makefile - htp
#
# HTML pre-processor
# Copyright (c) 1995-1996 Jim Nelson.  All rights reserved.
#

#
# project name and memory model
#
MAIN = htp

#
# development tools
#
CC = cc
LINK = cc

#
# tool command-line options ... notice that these are geared towards GNU
#
CCOPT = -c -Wall -O2
LOPT = -lc

#
# object files used
# declare OBJ2 if another line is needed
#
OBJ1 = $(MAIN).o image.o html.o ver.o textfile.o varstore.o msg.o gif.o jpeg.o option.o suballoc.o

#
# explicit dependency: final executable
#
$(MAIN) : $(OBJ1) $(OBJ2)
	$(LINK) $(LOPT) -o $(MAIN) $(OBJ1) $(OBJ2)

#
# implicit dependencies for source code
#
.c.o :
	$(CC) $(CCOPT) $(DEFINES) -o $*.o $<