123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- # $XConsortium: Makefile.sun /main/3 1996/05/13 12:01:49 drk $
- ##########################################################################
- #
- # Makefile for template example (SUN)
- #
- # (c) Copyright 1993, 1994 Hewlett-Packard Company
- # (c) Copyright 1993, 1994 International Business Machines Corp.
- # (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- # (c) Copyright 1993, 1994 Novell, Inc.
- #
- ##########################################################################
- CC = cc
- RM = rm -f
- DTHELPTAG = dthelptag
- GENCAT = gencat
- MKDIR = mkdir -p
- CP = cp
- CHMODEXE = chmod a+x
- LOCALE = C
-
- PACKAGE = template
- APPGROUPNAME = template
- PROGRAM = templatebin
- SOURCES = template.c
- OBJECTS = template.o
- HELPSOURCE = $(LOCALE)/template.htg
- HELPFILE = $(LOCALE)/template.sdl
- MSGSOURCE = $(LOCALE)/template.msg
- MSGFILE = $(LOCALE)/template.cat
- TYPEFILE = $(LOCALE)/template.dt
- ICONFILES = \
- $(LOCALE)/template.t.pm $(LOCALE)/template.t.bm \
- $(LOCALE)/template.s.pm $(LOCALE)/template.s.bm \
- $(LOCALE)/template.m.pm $(LOCALE)/template.m.bm \
- $(LOCALE)/template.l.pm $(LOCALE)/template.l.bm \
- $(LOCALE)/template_icon.pm $(LOCALE)/template_icon_m.bm \
- $(LOCALE)/template-brush.bm
- APPDEFAULTSSRC = $(LOCALE)/Template.ad
- APPDEFAULTS = $(LOCALE)/Template
- README = $(LOCALE)/README
- EXAMPLES = $(LOCALE)/example.template
- ACTIONS = TemplateNew TemplateOpen TemplatePrint
- DEFINES =
- CDEBUGFLAGS = -O
- CFLAGS = $(DEFINES) $(CDEBUGFLAGS)
- DTINCLUDE = -I/usr/dt/include
- X11INCLUDE = -I/usr/openwin/include
- INCLUDES = $(DTINCLUDE) $(X11INCLUDE)
- DTLIBS = -L/usr/dt/lib -lDtHelp -lDtSvc -lXm -ltt
- X11LIBS = -L/usr/openwin/lib -lXt -lX11
- SYSLIBS = -ldl -lw -lgen
- LIBRARIES = $(DTLIBS) $(X11LIBS) $(SYSLIBS)
- LDFLAGS = -R/usr/dt/lib:/usr/openwin/lib
- .c.o:
- $(CC) -c $(CFLAGS) $(INCLUDES) $<
- #all:: $(PACKAGE)
- $(PACKAGE):: $(PROGRAM) $(HELPFILE) $(MSGFILE) $(APPDEFAULTS) \
- $(ICONFILES) $(TYPEFILE) $(README) $(EXAMPLES) $(ACTIONS)
-
- $(RM) -r $(PACKAGE)
- $(MKDIR) $(PACKAGE)/bin
- $(MKDIR) $(PACKAGE)/app-defaults/C
- $(MKDIR) $(PACKAGE)/msg/C
- $(CP) $(PROGRAM) $(PACKAGE)/bin
- $(CP) $(MSGFILE) $(PACKAGE)/msg/C
- $(CP) $(APPDEFAULTS) $(PACKAGE)/app-defaults/C
- $(MKDIR) $(PACKAGE)/dt/appconfig/icons/C
- $(MKDIR) $(PACKAGE)/dt/appconfig/help/C
- $(MKDIR) $(PACKAGE)/dt/appconfig/types/C
- $(MKDIR) $(PACKAGE)/dt/appconfig/appmanager/$(LOCALE)/$(APPGROUPNAME)
-
- $(CP) $(ICONFILES) $(PACKAGE)/dt/appconfig/icons/C
- $(CP) $(HELPFILE) $(PACKAGE)/dt/appconfig/help/C
- $(CP) $(TYPEFILE) $(PACKAGE)/dt/appconfig/types/C
- $(CHMODEXE) $(ACTIONS)
- $(CP) $(README) $(EXAMPLES) $(ACTIONS) \
- $(PACKAGE)/dt/appconfig/appmanager/$(LOCALE)/$(APPGROUPNAME)
- $(PROGRAM):: $(OBJECTS)
- $(CC) -o $(PROGRAM) $(LDFLAGS) $(OBJECTS) $(LIBRARIES)
- $(APPDEFAULTS):: $(APPDEFAULTSSRC)
- $(CP) $(APPDEFAULTSSRC) $(APPDEFAULTS)
- $(HELPFILE):: $(HELPSOURCE)
- $(DTHELPTAG) $(HELPSOURCE)
- $(MSGFILE):: $(MSGSOURCE)
- $(GENCAT) $(MSGFILE) $(MSGSOURCE)
- clean::
- $(RM) $(PROGRAM) $(OBJECTS) $(MSGFILE) $(APPDEFAULTS)
- $(DTHELPTAG) -clean $(HELPSOURCE)
- $(RM) -r template
|