dtscreen: make it build
authorJon Trulson <jon@radscan.com>
Wed, 20 Nov 2019 02:59:20 +0000 (19:59 -0700)
committerJon Trulson <jon@radscan.com>
Wed, 20 Nov 2019 02:59:20 +0000 (19:59 -0700)
cde/configure.ac
cde/programs/dtscreen/Makefile.am

index e9512b909b5659492c7481917daadcaed91e6d91..428b8281ad6d5914f5d55ef8159942a7989a793e 100644 (file)
@@ -408,6 +408,8 @@ programs/dtaction/Makefile
 
 programs/dtspcd/Makefile
 
+programs/dtscreen/Makefile
+
 ])
 
 AC_OUTPUT
index d06a1fb59f9c582f20e55d58e43cd5d0c12cd657..083bbfa2a2298a7f34e8e01d483ba5521ba4aaf5 100644 (file)
@@ -1,20 +1,22 @@
-defaultdir = ${prefix}/app_defaults/C
+MAITAINERCLEANFILES = Makefile.in
 
 bin_PROGRAMS = dtscreen
 
-dist_default_DATA = Dtscreen
-
-dtscreen_LDADD = -lm $(SVCLIB) $(LIBTT) $(XTOOLLIB) ${X_LIBS}
+dtscreen_LDADD = $(DTCLIENTLIBS) $(XTOOLLIB)
 
 if SOLARIS
 dtscreen_LDADD += -ldl -lgen
 endif
 
-dtscreen_SOURCES = blank.c         dtscreen.c      flame.c         hopalong.c \
-                  hsbramp.c       image.c         life.c          pyro.c \
-                  qix.c           resource.c      rotor.c         swarm.c \
-                  usleep.c        worm.c
+dtscreen_SOURCES = blank.c dtscreen.c flame.c hopalong.c hsbramp.c     \
+                  image.c life.c pyro.c qix.c resource.c rotor.c       \
+                  swarm.c usleep.c worm.c dtscreen.h
+
+CPP_TARGETS = Dtscreen
+BUILT_SOURCES = $(CPP_TARGETS)
+CLEANFILES = $(CPP_TARGETS)
+
+Dtscreen: Dtscreen.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=#  $< > $@
 
-CPPTARGET = Dtscreen
-CPPSRC = Dtscreen.src
-include $(srcdir)/include/cppfile.tmpl