File: Imakefile

package info (click to toggle)
xxgdb 1.12-13
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 596 kB
  • ctags: 782
  • sloc: ansic: 8,600; makefile: 48; sh: 10
file content (131 lines) | stat: -rw-r--r-- 2,652 bytes parent folder | download | duplicates (3)
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

#define TARGET_IS_GDB 1
#define USE_IO_WINDOW 1

#if TARGET_IS_GDB
DEFGDB =  -DGDB -DUNDISPWIN 
#else
DEFGDB = 
#endif

#CC = gcc

#if mc68000			/* for SUN 3 */
CCOPTIONS=-m68881
#endif

#if defined(SunArchitecture)
#if OSMajorVersion >= 4
#if OSMajorVersion == 4 && OSMinorVersion >= 0
#if OSMinorVersion == 1 &&  OSTeenyVersion == 3
        DEFINES = -DSUNOS4 $(DEFGDB)
#else
        DEFINES = -DSUNOS4 -DNEED_STRSTR $(DEFGDB)
#endif
#else
        DEFINES = -DSYSV -DSVR4 -DSUNOS4 $(DEFGDB)
		SYS_LIBRARIES = -lm
#endif
#else
        DEFINES = -DOLDSUNOS -DNEED_STRSTR $(DEFGDB)
#endif
#endif

#ifdef UltrixArchitecture
#ifdef MipsArchitecture
        DEFINES = -DBSD -DMIPS  $(DEFGDB)
#else
        DEFINES = -DBSD $(DEFGDB)
#endif
#endif

#ifdef PegasusArchitecture
DEFINES = -DBSD $(DEFGDB) -DNEED_STRSTR
#endif

#ifdef AlphaArchitecture
DEFINES = -D_BSD $(DEFGDB)
#endif

#ifdef HPArchitecture
DEFINES = $(DEFGDB) -DHPUX -DREAD_ZERO_NOT_EOF
#endif

#ifdef SGIArchitecture
DEFINES = $(DEFGDB)
#endif

#ifdef IBMArchitecture
DEFINES = $(DEFGDB) -DREAD_ZERO_NOT_EOF
#endif

#ifdef LinuxArchitecture
DEFINES = -DHAVE_SIGNAL_H -DHAVE_WAITPID -DHAVE_KILLPG -DNO_SCANDIR $(DEFGDB)
#endif

#if defined(NeXTArchitecture) || defined(NextArchitecture)
#if OSMajorVersion == 3
#if OSMinorVersion == 0
DEFINES = -DOLDSUNOS $(DEFGDB) -DNEXTOS_3_0
#else
DEFINES = -DOLDSUNOS $(DEFGDB)
#endif
#else
DEFINES = -DOLDSUNOS $(DEFGDB) -DNEXTOS_2
#endif
#endif

# Add to use new multi window format
DEFINES+=-DNEW_INTERFACE
# Add to open all windows at startup
DEFINES+=-DOPEN_ALL_WINDOWS
#if USE_IO_WINDOW

	  SRCS1 = xxgdbiowin.c
	  OBJS1 = xxgdbiowin.o

DEFINES+=-DCREATE_IO_WINDOW -DXXGDBIOWIN=\"$(LIBDIR)/xxgdb/xxgdbiowin\"

#endif

mallocc = #malloc.c
malloco = #malloc.o

        DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)

           SRCS = calldbx.c command.c dbx.c dialog.c datadpy.c filemenu.c \
		  handler.c parser.c regex.c signs.c signals.c source.c \
		  utils.c windows.c xdbx.c $(mallocc)

           OBJS = calldbx.o command.o dbx.o dialog.o datadpy.o filemenu.o \
		  handler.o parser.o regex.o signs.o signals.o source.o \
		  utils.o windows.o xdbx.o $(malloco)

#if TARGET_IS_GDB

ComplexProgramTarget(xxgdb)

#if USE_IO_WINDOW
AllTarget(xxgdbiowin)

NormalProgramTarget(xxgdbiowin,$(OBJS1),NullParameter,NullParameter,NullParameter)

InstallProgram(xxgdbiowin,$(LIBDIR)/xxgdb)
#endif

#else

ComplexProgramTarget(xdbx)

#endif	/* not GDB */

InstallAppDefaults(XDbx)

#if TARGET_IS_GDB
handler.o: gdb_handler.c

parser.o: gdb_parser.c gdb_regex.h

#endif	/* GDB */