Makefile 599 Bytes
Newer Older
1
ifeq ($(OS),Windows_NT)
2
	TRAY_CFLAGS := -DTRAY_WINAPI=1
3
	TRAY_LDFLAGS :=
4
else ifeq ($(shell uname -s),Linux)
5 6
	TRAY_CFLAGS := -DTRAY_APPINDICATOR=1 $(shell pkg-config --cflags appindicator3-0.1)
	TRAY_LDFLAGS := $(shell pkg-config --libs appindicator3-0.1)
7
else ifeq ($(shell uname -s),Darwin)
Jeremy Legendre's avatar
Jeremy Legendre committed
8
	TRAY_CFLAGS := -DTRAY_APPKIT=1
9
	TRAY_LDFLAGS := -framework Cocoa
10 11 12
endif


13
CFLAGS := -g -Wall $(TRAY_CFLAGS) -Wall -Wextra -std=c99 -pedantic
14 15 16 17 18 19 20 21 22 23
LDFLAGS := -g $(TRAY_LDFLAGS)

all: example
example: example.o
	$(CC) $^ $(LDFLAGS) -o $@
	
example.o: example.c tray.h

clean:
	rm -f example.o example example.exe