home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-11-23 | 3.8 KB | 129 lines |
- # @(#)Makefile 1.2 92/05/28 SMI
- # from Makefile 1.5 90/07/23 SMI
- # make xv build xview/xgl version
- # make sv build sunview/xgl version (requires special library)
- # make gp build sunview/gpsi version
-
-
- XGLINC = -I$(XGLHOME)/include
-
-
- FX-sun4 = -fsingle /usr/lib/libm.il
- FX-sun3 = -fsingle -f68881 /usr/lib/f68881/libm.il
- FX = -fsingle -f68881 /usr/lib/f68881.il
- FP = $(FX$(TARGET_ARCH))
-
- CFLAGS = -O $(FP) $(INC)
- #CFLAGS = -g -DDEBUG $(FP) $(INC)
- #CFLAGS = -O -pg $(FP) $(INC)
-
- dstar:= CFLAGS += -DXGL -DXV $(XGLINC)
- dstar_xglsv:= CFLAGS += -DXGL $(XGLSVINC)
-
-
- #LIBXGLSW = -lxglSW
- LIBXGLSW = -L$(XGLHOME)/lib -lxglSW
-
- #LIBXGL = -lxgl
- LIBXGL = -L$(XGLHOME)/lib -lxgl
-
- .KEEP_STATE:
-
-
- SRC = dstar.c control.c draw_hsi_xgl.c draw_starfield_xgl.c netio.c \
- draw_image_xgl.c draw_bsp_xgl.c draw_objects_xgl.c \
- laser.c blast.c special_xv.c control_ship.c \
- create_planet.c create_monolith.c autopilot.c missile.c \
- radar.c panel.c master.c fighter.c static.c \
- create_eship.c missile_control.c
-
- OBJ = $(SRC:.c=.o)
-
- XGL_SV_SRC = dstar.c control.c draw_hsi_xgl.c draw_starfield_xgl.c netio.c \
- draw_image_xgl.c draw_bsp_xgl.c draw_objects_xgl.c \
- laser.c blast.c special.c control_ship.c \
- create_planet.c create_monolith.c autopilot.c missile.c \
- radar.c panel.c master.c fighter.c static.c \
- create_eship.c missile_control.c
-
- XGL_SV_OBJ = $(XGL_SV_SRC:.c=.o)
-
- GP_SRCS = dstar.c control.c draw_hsi.c draw_starfield.c netio.c \
- draw_image.c draw_bsp.c draw_objects.c \
- laser.c blast.c special.c control_ship.c \
- create_planet.c create_monolith.c autopilot.c missile.c \
- radar.c panel.c master.c fighter.c static.c \
- create_eship.c missile_control.c
-
- GP_OBJS = $(GP_SRCS:.c=.o)
-
-
- INCS = blast_line0.h blast_line1.h bsp_object.h dstar.h fighter1_bsp.h \
- fighter1_line.h fighter2_bsp.h fighter2_line.h graphics.h \
- hsi.h line_object.h missile_line.h monolith_bsp.h netio.h \
- object_types.h parameters.h planet1.h planet2.h starfield.h \
- cursor1.pr cursor2.pr dstar.icon dstar_sleep.icon nodstar.icon
-
- ROBOT_SRCS = dstar.c control.c netio.c laser.c autopilot.c robot_special.c \
- control_robot.c radar.c fighter.c static.c missile.c master.c
-
- ROBOT_OBJS = $(ROBOT_SRCS:.c=.o)
-
-
- ROBOT_ARCH = robot_special.c control_robot.c
-
- FULL_ARCH = dstar.c control.c draw_hsi.c draw_starfield.c netio.c \
- draw_image.c draw_bsp.c draw_objects.c \
- laser.c blast.c special.c control_ship.c \
- create_planet.c create_monolith.c autopilot.c missile.c \
- radar.c panel.c master.c fighter.c static.c \
- create_eship.c missile_control.c \
- draw_hsi_xgl.c draw_starfield_xgl.c special_xv.c \
- draw_image_xgl.c draw_bsp_xgl.c draw_objects_xgl.c $(ROBOT_ARCH)
-
-
- dstar: $(INCS) $(OBJ)
- cc $(CFLAGS) -o dstar $(OBJ) \
- -L$(OPENWINHOME)/lib $(LIBXGL) -lm -lxview -lolgx -lX11
-
- dstar_xglsv: $(INCS) $(XGL_SV_OBJ)
- cc $(CFLAGS) -o dstar_xglsv $(XGL_SV_OBJ) \
- $(LIBXGLSW) -lm -lsuntool -lsunwindow -lpixrect
-
- dstar_gp: $(INCS) $(GP_OBJS) dev_gp1.a
- cc $(CFLAGS) -o dstar_gp $(GP_OBJS) dev_gp1.a \
- -lm -lsuntool -lsunwindow -lpixrect
-
- all: dstar robot
-
- xv: dstar_xv
-
- sv xgl: dstar_xglsv
-
- gp: dstar_gp
-
-
- robot: $(ROBOT_OBJS)
- cc $(CFLAGS) -o robot $(ROBOT_OBJS) -lm -lxview -lolgx -lX11
- # cc $(CFLAGS) -o robot $(ROBOT_OBJS) -lm -lsunwindow -lpixrect
-
-
- tester: tester.o
- cc $(CFLAGS) -o tester tester.o -lsuntool -lsunwindow -lpixrect
-
- archive: README Makefile $(INCS) $(SRC) $(ROBOT_ARCH)
- cshar -a -M 200000 -o ar README Makefile $(INCS) $(SRC) $(ROBOT_ARCH)
-
- xgl_sv_archive: README Makefile $(INCS) $(XGL_SV_SRC) $(ROBOT_ARCH)
- cshar -a -M 200000 -o ar README Makefile $(INCS) $(XGL_SV_SRC) $(ROBOT_ARCH)
-
- gp_archive: README Makefile $(INCS) $(SRCS) $(ROBOT_ARCH)
- cshar -a -M 200000 -o ar README Makefile $(INCS) $(SRCS) $(ROBOT_ARCH)
-
- tarchive: README Makefile $(INCS) $(FULL_ARCH)
- tar -cvf - README Makefile $(INCS) $(FULL_ARCH) | \
- compress -c > dstar.tar.Z
-
- clean:
- rm -f *.o core
-