[hackers] [slstatus] Tweak build system a little bit || Laslo Hunhold

From: <git_AT_suckless.org>
Date: Tue, 1 May 2018 20:53:43 +0200 (CEST)

commit 24b663d6570563a2dc601363c26ebd4d0bb36611
Author: Laslo Hunhold <dev_AT_frign.de>
AuthorDate: Tue May 1 20:50:53 2018 +0200
Commit: Aaron Marcher <me_AT_drkhsh.at>
CommitDate: Tue May 1 20:53:27 2018 +0200

    Tweak build system a little bit
    
    Be consistent with brackets and add a comment for OpenBSD to make it
    clearer what the actual intent of the uncommented line is.
    
    In the Makefile, add a dependency of slstatus.o from config.mk.

diff --git a/Makefile b/Makefile
index 00c35c4..b9d7695 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -29,7 +29,7 @@ COM =\
 all: slstatus
 
 slstatus: slstatus.o $(COM:=.o) $(REQ:=.o)
-slstatus.o: slstatus.c slstatus.h arg.h config.h $(REQ:=.h)
+slstatus.o: slstatus.c slstatus.h arg.h config.h config.mk $(REQ:=.h)
 $(COM:=.o): config.mk $(REQ:=.h)
 
 config.h:
diff --git a/config.mk b/config.mk
index a148da4..9d26bc3 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -5,19 +5,17 @@ VERSION = 0
 
 # paths
 PREFIX = /usr/local
-MANPREFIX = ${PREFIX}/share/man
+MANPREFIX = $(PREFIX)/share/man
 
 X11INC = /usr/X11R6/include
 X11LIB = /usr/X11R6/lib
 
-# OpenBSD (uncomment)
-#OSSLIBS = -lossaudio
-
 # flags
 CPPFLAGS = -I$(X11INC) -D_DEFAULT_SOURCE
 CFLAGS = -std=c99 -pedantic -Wall -Wextra -Os
 LDFLAGS = -L$(X11LIB) -s
-LDLIBS = -lX11 ${OSSLIBS}
+# OpenBSD: add -lossaudio
+LDLIBS = -lX11
 
 # compiler and linker
 CC = cc
Received on Tue May 01 2018 - 20:53:43 CEST

This archive was generated by hypermail 2.3.0 : Tue May 01 2018 - 21:00:34 CEST