dylanaraps / sowm

An itsy bitsy floating window manager (220~ sloc!).
MIT License
915 stars 73 forks source link

Compiling on FreeBSD #96

Closed plasmoduck closed 4 years ago

plasmoduck commented 4 years ago

I get sowm.c:3:10: fatal error: 'X11/Xlib.h' file not found

include <X11/Xlib.h>

how to fix? I have xlib installed

plasmoduck commented 4 years ago

I fixed it! For those who would like to know, here is my Makefile;

CFLAGS = -std=c99 -Wall -Wextra -pedantic -Wold-style-declaration CFLAGS = -Wmissing-prototypes -Wno-unused-parameter LDFLAGS = ${LIBS}

PREFIX = /usr/local BINDIR = /usr/local/bin

X11LIB = /usr/local/lib X11INC = /usr/local/include LIBS = -L${X11LIB} -lX11

CC = gcc

all: sowm

config.h: cp config.def.h config.h

sowm: sowm.c sowm.h config.h Makefile $(CC) -O3 $(CFLAGS) -o $@ $< -lX11 -lXext $(LDFLAGS)

install: all install -Dm755 sowm $(DESTDIR)$(BINDIR)/sowm

uninstall: rm -f $(DESTDIR)$(BINDIR)/sowm

clean: rm -f sowm *.o

.PHONY: all install uninstall clean