47 lines
1.2 KiB
Makefile
47 lines
1.2 KiB
Makefile
ifeq ($(platform),)
|
|
hiroflags = $(cppflags) $(flags) -DHIRO_REFERENCE
|
|
hirolink =
|
|
endif
|
|
|
|
ifeq ($(platform),windows)
|
|
ifeq ($(hiro),)
|
|
hiro := windows
|
|
endif
|
|
|
|
ifeq ($(hiro),windows)
|
|
hiroflags = $(cppflags) $(flags) -DHIRO_WINDOWS
|
|
hirolink = -lkernel32 -luser32 -lgdi32 -ladvapi32 -lole32 -lcomctl32 -lcomdlg32 -luxtheme -lmsimg32 -lshlwapi
|
|
endif
|
|
|
|
ifeq ($(hiro),gtk)
|
|
hiroflags = $(cppflags) $(flags) -DHIRO_GTK $(shell pkg-config --cflags gtk+-2.0 gtksourceview-2.0)
|
|
hirolink = $(shell pkg-config --libs gtk+-2.0 gtksourceview-2.0)
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(platform),macosx)
|
|
ifeq ($(hiro),)
|
|
hiro := cocoa
|
|
endif
|
|
|
|
ifeq ($(hiro),cocoa)
|
|
hiroflags = $(objcppflags) $(flags) -w -DHIRO_COCOA
|
|
hirolink = -framework Cocoa -framework Carbon
|
|
endif
|
|
endif
|
|
|
|
ifneq ($(filter $(platform),linux bsd),)
|
|
ifeq ($(hiro),)
|
|
hiro := gtk
|
|
endif
|
|
|
|
ifeq ($(hiro),gtk)
|
|
hiroflags = $(cppflags) $(flags) -DHIRO_GTK $(shell pkg-config --cflags gtk+-2.0 gtksourceview-2.0)
|
|
hirolink = -lX11 $(shell pkg-config --libs gtk+-2.0 gtksourceview-2.0)
|
|
endif
|
|
|
|
ifeq ($(hiro),qt)
|
|
hiroflags = $(cppflags) $(flags) -DHIRO_QT $(shell pkg-config --cflags QtCore QtGui)
|
|
hirolink = -lX11 $(shell pkg-config --libs QtCore QtGui)
|
|
endif
|
|
endif
|