mirror of
https://github.com/vale981/yabar
synced 2025-03-05 09:31:39 -05:00
Add include & intern_blks directories.
This commit is contained in:
parent
66a0f7ac47
commit
858485506c
3 changed files with 3 additions and 4 deletions
7
Makefile
7
Makefile
|
@ -1,18 +1,17 @@
|
|||
VERSION = $(shell git describe)
|
||||
CPPFLAGS += -DVERSION=\"$(VERSION)\" -D_POSIX_C_SOURCE=199309L -DYA_INTERNAL
|
||||
CFLAGS += -std=c99 -pedantic -Wall -O2 `pkg-config --cflags pango pangocairo libconfig`
|
||||
INCLDS := -I.
|
||||
CFLAGS += -std=c99 -Iinclude -pedantic -Wall -O2 `pkg-config --cflags pango pangocairo libconfig`
|
||||
LDLIBS := -lxcb -lpthread -lxcb-randr `pkg-config --libs pango pangocairo libconfig`
|
||||
PROGRAM := yabar
|
||||
PREFIX ?= /usr
|
||||
BINPREFIX ?= $(PREFIX)/bin
|
||||
MANPREFIX ?= $(PREFIX)/share/man
|
||||
|
||||
OBJS := $(wildcard src/*.c)
|
||||
OBJS := $(wildcard src/*.c) $(wildcard src/intern_blks/*.c)
|
||||
OBJS := $(OBJS:.c=.o)
|
||||
|
||||
%.o: %.c %.h
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
$(CC) $(INCLDS) $(CFLAGS) -c -o $@ $<
|
||||
all: $(PROGRAM)
|
||||
$(PROGRAM): $(OBJS)
|
||||
$(CC) -o $@ $^ $(LDLIBS)
|
||||
|
|
Loading…
Add table
Reference in a new issue