changeset 16:ce7e227953d1

build Signed-off-by: Nils Gillmann <ng0@n0.is>
author Nils Gillmann <ng0@n0.is>
date Mon, 17 Sep 2018 13:56:29 +0000
parents 05bc58d28443
children 721a429ced2d
files Makefile guix.scm
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Mon Sep 17 13:40:27 2018 +0000
+++ b/Makefile	Mon Sep 17 13:56:29 2018 +0000
@@ -88,11 +88,13 @@
       ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES)
        ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS)
            CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
+           CFLAGS += -Wall -O2 -g -ansi -pedantic
         LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
 
            LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
 
         LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) -L$(USRLIBDIR)
+        LDOPTIONS += `pkg-config --libs x11 xft xrandr fontconfig`
 
    LDCOMBINEFLAGS = -X -r
 
--- a/guix.scm	Mon Sep 17 13:40:27 2018 +0000
+++ b/guix.scm	Mon Sep 17 13:56:29 2018 +0000
@@ -15,6 +15,7 @@
  (gnu packages gnunet)
  (gnu packages xorg)
  (gnu packages libidn)
+ (gnu packages pkg-config)
  (ports devel byacc byacc))
 
 (define %source-dir (dirname (current-filename)))
@@ -42,7 +43,10 @@
      `(("byacc" ,byacc)
        ;;("bison" ,bison)
        ("libx11" ,libx11)
+       ("libxaw" ,libxaw)
+       ("libxaw3d" ,libxaw3d)
        ("libxext" ,libxext)
+       ("pkg-config" ,pkg-config)
        ("flex" ,flex)))
     (home-page #f)
     (license #f)