#define TARGET_IS_GDB 1 #if TARGET_IS_GDB DEFGDB = -DGDB -g #else DEFGDB = #endif CC = gcc -v #if defined(SunArchitecture) #if OSMajorVersion >= 4 #if OSMajorVersion == 4 && OSMinorVersion == 0 DEFINES = -DSUNOS4 -DNEED_STRSTR $(DEFGDB) #else DEFINES = -DSUNOS4 $(DEFGDB) #endif #else DEFINES = -DOLDSUNOS -DNEED_STRSTR $(DEFGDB) #endif #endif #ifdef UltrixArchitecture #ifdef MipsArchitecture DEFINES = -DBSD -DMIPS $(DEFGDB) #else DEFINES = -DBSD $(DEFGDB) #endif #endif #ifdef i386BsdArchitecture DEFINES = -DBSD -DI386BSD $(DEFGDB) #endif #ifdef PegasusArchitecture DEFINES = -DBSD $(DEFGDB) -DNEED_STRSTR #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) #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 */