# # SCCS ID: %Z%%M% %I% %E% SMI # # Copyright (c) 1990-1992 Sun Microsystems, Inc. All rights reserved. # See LEGAL_NOTICE file for terms of the license. # PROGRAM = driver SOURCES.cc = driver_ui.cc driver_stubs.cc SOURCES.h = # Derived parameters. SOURCES = \ $(SOURCES.G) \ $(SOURCES.h) \ $(SOURCES.l) \ $(SOURCES.y) \ $(SOURCES.cc) TARGETS.cc = $(SOURCES.cc) TARGETS.h = \ $(SOURCES.l:%.l=%.h) \ $(SOURCES.y:%.y=%.h) TARGETS = \ $(TARGETS.h) \ $(TARGETS.cc) OBJECTS = \ $(TARGETS.cc:%.cc=%.o) # Compiler flags. CCFLAGS += -DSVR4 -DSYSV CPPFLAGS += -I$(UITHOME)/include/c++ -I$(OPENWINHOME)/include LDFLAGS += -L$(UITHOME)/lib -L$(OPENWINHOME)/lib LDLIBS += -lUIC -lxvps -lxview -lolgx -lX -lcps -lm LDLIBS += -lsocket -lnsl -lintl -ldl LDLIBS += -lwire # Standard targets. all: $(TARGETS.other) $(PROGRAM) objects: $(SOURCES.cc) $(TARGETS.cc) $(TARGETS.h) $(OBJECTS) sources: $(SOURCES) targets: $(SOURCES) $(TARGETS) $(PROGRAM): $(SOURCES.cc) $(TARGETS.cc) $(TARGETS.h) $(OBJECTS) $(LINK.cc) -o $(PROGRAM) $(OBJECTS) $(LDLIBS) driver_ui.o: driver_ui.cc ImageButton.h # Targets to be used by a certain CASE tool. stest: $(SOURCES.cc) $(TARGETS.cc) $(TARGETS.h) $(OBJECTS) #load $(CCFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) \ -o $(PROGRAM) $(TARGETS.cc) $(LDLIBS) #link delete: /bin/rm -f $(PROGRAM) $(OBJECTS)