This repository has been archived on 2021-03-07. You can view files and clone it, but cannot push or open issues or pull requests.
sowm/Makefile

20 lines
371 B
Makefile
Raw Normal View History

2020-01-23 15:03:56 +00:00
CFLAGS += -std=c99 -Wall -Wextra -pedantic -Wold-style-declaration
2020-01-23 15:00:26 +00:00
CFLAGS += -Wmissing-prototypes -Wno-unused-parameter
PREFIX ?= /usr
BINDIR ?= $(PREFIX)/bin
2020-01-23 15:03:56 +00:00
CC ?= gcc
2019-10-11 11:48:34 +00:00
2019-10-15 14:12:10 +00:00
all: config.h sowm
config.h:
cp config.def.h config.h
2019-10-11 11:48:34 +00:00
2019-10-11 18:38:58 +00:00
sowm: sowm.o
2020-02-16 11:38:57 +00:00
$(CC) $(LDFLAGS) -O3 -o sowm sowm.c -lX11
2019-10-11 11:48:34 +00:00
install: all
2020-01-23 15:03:56 +00:00
install -Dm755 sowm $(DESTDIR)$(BINDIR)/sowm
2019-10-11 11:48:34 +00:00
clean:
2019-10-11 18:38:58 +00:00
rm -f sowm *.o