Makefile 283 Bytes
Newer Older
1 2 3 4
define linkexe
 	ln -sf src/$(if $(filter $(shell uname),Darwin),meshalyzer.app/Contents/MacOS/,)$(1) .
endef

Edward Vigmond's avatar
Edward Vigmond committed
5
all: obj
Edward Vigmond's avatar
Edward Vigmond committed
6
	cd src && $(MAKE)
7
	$(call linkexe,meshalyzer) 
Edward Vigmond's avatar
Edward Vigmond committed
8

Edward Vigmond's avatar
Edward Vigmond committed
9 10
mesalyzer:
	cd src && $(MAKE) mesalyzer
11
	$(call linkexe,$@) 
Edward Vigmond's avatar
Edward Vigmond committed
12

Edward Vigmond's avatar
Edward Vigmond committed
13 14
clean :
	cd src && $(MAKE) clean
Edward Vigmond's avatar
Edward Vigmond committed
15

Edward Vigmond's avatar
Edward Vigmond committed
16 17 18
obj: 
	mkdir obj