Browse Source

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.
master
Laslo Hunhold 8 years ago
committed by Aaron Marcher
parent
commit
24b663d657
  1. 2
      Makefile
  2. 8
      config.mk

2
Makefile

@ -29,7 +29,7 @@ COM =\
all: slstatus all: slstatus
slstatus: slstatus.o $(COM:=.o) $(REQ:=.o) 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) $(COM:=.o): config.mk $(REQ:=.h)
config.h: config.h:

8
config.mk

@ -5,19 +5,17 @@ VERSION = 0
# paths # paths
PREFIX = /usr/local PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man MANPREFIX = $(PREFIX)/share/man
X11INC = /usr/X11R6/include X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib X11LIB = /usr/X11R6/lib
# OpenBSD (uncomment)
#OSSLIBS = -lossaudio
# flags # flags
CPPFLAGS = -I$(X11INC) -D_DEFAULT_SOURCE CPPFLAGS = -I$(X11INC) -D_DEFAULT_SOURCE
CFLAGS = -std=c99 -pedantic -Wall -Wextra -Os CFLAGS = -std=c99 -pedantic -Wall -Wextra -Os
LDFLAGS = -L$(X11LIB) -s LDFLAGS = -L$(X11LIB) -s
LDLIBS = -lX11 ${OSSLIBS} # OpenBSD: add -lossaudio
LDLIBS = -lX11
# compiler and linker # compiler and linker
CC = cc CC = cc

Loading…
Cancel
Save