File: nmake.w32

package info (click to toggle)
openvas-client 1.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 4,004 kB
  • ctags: 2,723
  • sloc: ansic: 50,142; sh: 3,617; makefile: 903
file content (131 lines) | stat: -rw-r--r-- 3,229 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#!nmake /f
#
# Makefile for the Microsoft compiler/linker
# creates the nessus client
#


# most certailny, you need to adjust the following
# parameter to the root of your gtk stuff
GTKROOT = C:\Nessus\Src


!include <ntwin32.mak>

INSTALL_TARGET = C:\Nessus
PRFS           = prefs_dialog
CHRT           = gdchart0.94b
CHLB           = $(CHRT)\gd1.3

LCLINC  = -I. -I$(PRFS) -I$(CHRT) -I$(CHLB) -I..\include
NESINC  = -I$(INSTALL_TARGET)\include \
          -I$(INSTALL_TARGET)\include\nessus
GTKINC  = -I$(GTKROOT)\gtk+ \
          -I$(GTKROOT)\gtk+/gtk \
          -I$(GTKROOT)\gtk+/gdk \
	  -I$(GTKROOT)\gtk+\gdk\win32
GLBINC  = -I$(GTKROOT)\glib \
          -I$(GTKROOT)\glib\win32

CC      = cl.exe
DEFS    = $(NESINC) $(GTKINC) $(GLBINC)
CFLAGS  = -nologo -Ox $(LCLINC) $(DEFS) $(EXFLAGS)



LIBS    = nessus.lib peks.lib mpz.lib zlib.lib \
          gtk-1.3.lib gdk-1.3.lib peks.lib \
	  glib-1.3.lib wsock32.lib
LIBPATH = /libpath:$(GTKROOT)\glib \
          /libpath:$(GTKROOT)\gtk+\gdk \
          /libpath:$(GTKROOT)\gtk+\gdk\win32 \
          /libpath:$(GTKROOT)\gtk+\gtk \
          /libpath:$(INSTALL_TARGET)\lib
LDFLAGS = -nologo -map -out:nessus.exe \
          -machine:I386 -subsystem:WINDOWS
LD      = link.exe



OBJ     =   attack.obj              auth.obj \
              comm.obj      error_dialog.obj \
          families.obj    monitor_dialog.obj \
            nessus.obj            parser.obj \
   password_dialog.obj      plugin_infos.obj \
       preferences.obj  read_target_file.obj \
            report.obj      latex_output.obj \
           sighand.obj            xstuff.obj \
      report_utils.obj       html_output.obj \
        text_output.obj \
     splash_screen.obj html_graph_output.obj \
     cli.obj                  xml_output.obj \
    detached_index.obj

XOBJ    = prefs_about.obj \
          prefs_dialog.obj \
          prefs_dialog_auth.obj \
	  prefs_dialog_misc.obj \
          prefs_dialog_plugins_prefs.obj \
          prefs_dialog_scan_opt.obj \
	  prefs_dialog_user.obj \
	  prefs_plugins.obj \
	  prefs_kb.obj \
	  prefs_target.obj


YOBJ    = gdc.obj price_conv.obj gdc_pie.obj \
	  gdchart.obj gd.obj gdfontt.obj \
	  gdfonts.obj gdfontmb.obj gdfontl.obj \
	  gdfontg.obj

# ------------------------------------------------------
#      default rules
# ------------------------------------------------------

all: nessus.exe

.c.obj:
	$(CC) $(cvarsdll) $(CFLAGS) -c -Fo$*.obj $<

{$(PRFS)\}.c.obj::
	$(CC) $(cvarsdll) $(CFLAGS) -c $<

{$(CHRT)\}.c.obj::
	$(CC) $(cvarsdll) $(CFLAGS) -c $<

{$(CHLB)\}.c.obj::
	$(CC) $(cvarsdll) $(CFLAGS) -c $<

# ------------------------------------------------------
#      install peks stuff
# ------------------------------------------------------

install:


# ------------------------------------------------------
#      built the binary
# ------------------------------------------------------

nessus.exe: $(OBJ) $(XOBJ) $(YOBJ)
	$(LD) @<<
	$(LIBPATH)
	$(LDFLAGS)
	$(OBJ)
	$(XOBJ)
	$(YOBJ)
	$(LIBS)
<<

# ------------------------------------------------------
#      clean up
# ------------------------------------------------------

distclean clean::
	-del nessus.map
	-del nessus.exp
	-del *.obj

distclean::
	-del nessus.exe