Link with C++ linker
[oweals/cde.git] / cde / programs / dtscreen / Imakefile
1 XCOMM $XConsortium: Imakefile /main/10 1996/10/09 14:06:18 drk $
2
3        INCLUDES = -I.
4
5         DEPLIBS = $(DEPDTSVCLIB) $(DEPTTLIB) $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXPLIB) $(DEPXLIB)
6 LOCAL_LIBRARIES = $(DTSVCLIB) $(TTLIB) $(XMLIB) $(XTOOLLIB) $(XPLIB) $(XLIB)
7   SYS_LIBRARIES = -lm $(DYNLIBSYSLIB) $(REGEXSYSLIB)
8
9
10 #if defined(SCOArchitecture)
11   SYS_LIBRARIES = -lm -lcrypt
12 #endif
13
14 XCOMM On Linux once you link against a C++ library the whole program 
15 XCOMM has to be linked with the C++ linker
16 #if defined(LinuxDistribution)
17 CCLINK = $(CXX)
18 #endif
19
20 SRCS =  blank.c         dtscreen.c      flame.c         hopalong.c \
21         hsbramp.c       image.c         life.c          pyro.c \
22         qix.c           resource.c      rotor.c         swarm.c \
23         usleep.c        worm.c
24
25 OBJS =  blank.o         dtscreen.o      flame.o         hopalong.o \
26         hsbramp.o       image.o         life.o          pyro.o \
27         qix.o           resource.o      rotor.o         swarm.o \
28         usleep.o        worm.o
29
30 all::
31
32 /**************************************************************************
33  *
34  *  Extra things for the Passwd Etc. version
35  *
36  **************************************************************************/
37
38 #ifdef USE_RGY
39       EXTRA_DEFINES = -D__PASSWD_ETC +e
40     EXTRA_LIBRARIES = $(RGYLIB) $(NCKLIB) -lndbm -lBSD ExtraLibraries
41 #endif
42
43 CppSourceFile(Dtscreen,Dtscreen.src,$(LOCAL_CPP_DEFINES),)
44
45 ComplexProgramTarget(dtscreen)