You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

49 lines
1.2 KiB

# Makefile
# vala project
#
# name of your project/program
PROGRAM = neo_layout_viewer
BINDIR = bin
# for most cases the following two are the only you'll need to change
# add your source files here
SRC = neo2.vala key-overlay.vala tray.vala config-manager.vala keybinding-manager.vala
# add your used packges here
PKGS = --pkg x11 --pkg keysym --pkg gtk+-2.0 --pkg gee-1.0 --pkg gdk-x11-2.0 --pkg posix
#PKGS = --pkg keysym --pkg x11 --pkg gtk+-2.0 --pkg gee-1.0 --pkg gdk-x11-2.0 --pkg posix
CC_INCLUDES =
# vala compiler
VALAC = valac
#VAPIDIR = --vapidir=vapi/
VAPIDIR = --vapi=vapi/keysym.vapi
# compiler options for a debug build
VALACOPTS = -g --save-temps
# set this as root makefile for Valencia
BUILD_ROOT = 1
# the 'all' target build a debug build
all: $(BINDIR) bulid_debug
# the 'release' target builds a release build
# you might want to disabled asserts also
release: $(BINDIR) clean bulid_release
$(BINDIR):
mkdir -p $(BINDIR)
ln -s ../assets bin/assets
bulid_debug:
@$(VALAC) $(VAPIDIR) $(VALACOPTS) $(SRC) -o $(BINDIR)/$(PROGRAM) $(PKGS) $(CC_INCLUDES)
bulid_release:
@$(VALAC) -X -O2 $(VAPIDIR) $(SRC) -o $(BINDIR)/$(PROGRAM)_release $(PKGS) $(CC_INCLUDES)
# clean all built files
clean:
@rm -v -fr *~ *.c $(PROGRAM)