File: Makefile.gen

package info (click to toggle)
links 0.84-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,184 kB
  • ctags: 2,048
  • sloc: ansic: 16,116; sh: 395; makefile: 49; awk: 33
file content (59 lines) | stat: -rw-r--r-- 1,554 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
ifeq ($(findstring ;,$(PATH)),;)
# OS/2; compiler EMX
_OS_=os2
else
# Unix, Linux or other clones; compiler GCC (and maybe CC?)
_OS_=unix
endif

OPT=1

ifeq ($(_OS_),os2)
LIBS=-lsocket -Zmt
EXE=links.exe
DFLAGS=-DHAVE_BEGINTHREAD -DHAVE_MOUOPEN -DHAVE_READ_KBD -DHAVE_SYS_SELECT_H -Zmt
else
#F=-lefence
LIBS=$(F)
#-lgpm
EXE=links
endif

ifeq ($(OPT),1)
OFLAGS= -O3
endif

WARNINGS = -Wimplicit -Wreturn-type

CFLAGS = -DHAVE_CONFIG2_H $(DFLAGS) $(OFLAGS) $(WARNINGS) -g

all : $(EXE)
bfu.o : bfu.c links.h
cache.o : cache.c links.h
charsets.o : charsets.c links.h
connect.o : connect.c links.h
default.o : default.c links.h
dns.o : dns.c links.h
error.o : error.c links.h
file.o : file.c links.h
ftp.o : ftp.c links.h
html_r.o : html_r.c links.h
html_tbl.o : html_tbl.c links.h
html.o : html.c links.h
http.o : http.c links.h
kbd.o : kbd.c links.h
main.o : main.c links.h
menu.o : menu.c links.h
os_dep.o : os_dep.c links.h
sched.o : sched.c links.h
select.o : select.c links.h
session.o : session.c links.h
terminal.o : terminal.c links.h
types.o : types.c links.h
url.o : url.c links.h
view.o : view.c links.h
$(EXE) : bfu.o cache.o charsets.o connect.o default.o dns.o error.o file.o ftp.o html_r.o html_tbl.o html.o http.o kbd.o main.o menu.o os_dep.o sched.o select.o session.o terminal.o types.o url.o view.o
	$(CC) -o $(EXE) bfu.o cache.o charsets.o connect.o default.o dns.o error.o file.o ftp.o html_r.o html_tbl.o html.o http.o kbd.o main.o menu.o os_dep.o sched.o select.o session.o terminal.o types.o url.o view.o $(LIBS)

clean :
	rm -f *.o