forked from Yadciel/c_tray
initial commit, gtk/appindicator implementation draft
This commit is contained in:
28
Makefile
Normal file
28
Makefile
Normal file
@@ -0,0 +1,28 @@
|
||||
ifeq ($(OS),Windows_NT)
|
||||
TRAY_CFLAGS :=
|
||||
TRAY_LDFLAGS :=
|
||||
else
|
||||
UNAME_S := $(shell uname -s)
|
||||
ifeq ($(UNAME_S),Linux)
|
||||
TRAY_CFLAGS := -DTRAY_APPINDICATOR=1 $(shell pkg-config --cflags appindicator3-0.1)
|
||||
TRAY_LDFLAGS := $(shell pkg-config --libs appindicator3-0.1)
|
||||
endif
|
||||
ifeq ($(UNAME_S),Darwin)
|
||||
TRAY_CFLAGS := -DTRAY_COCOA=1 -x objective-c -framework Cocoa $< -o $@
|
||||
TRAY_LDFLAGS :=
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
CFLAGS := -g -Wall $(TRAY_CFLAGS)
|
||||
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
|
||||
Reference in New Issue
Block a user