All pastes #1266207 Raw Edit

milkyway v0.3 example Makefile

public text v1 · immutable
#1266207 ·published 2008-11-24 23:03 UTC
rendered paste body
# -*- Makefile -*-
#
# usage:
#  make
#  make app_i686
#  make clean
#  etc
#
$(MAKE) = make

# this configuration is for linux, app_x86_64 by default (first target)
# and takes boinc includes and libs from a build in the boinc source tree
#
# variables we need to override
#
BOINC_DIR = your_path_to_the_boinc_root_directory

THIS_MAKE = $(MAKE) -f make.linux \
 BOINC_DIR=$(BOINC_DIR) \
 BOINC_LINK_DIR=$(BOINC_DIR) \
 LDFLAGS_i686='-L$$(BOINC_LIB_LINK_DIR) -L$$(BOINC_API_LINK_DIR)' \
 LDFLAGS_x86_64='-L$$(BOINC_LIB_LINK_DIR) -L$$(BOINC_API_LINK_DIR)'

# our definitions of the targets
#
app_x86_64:
	$(THIS_MAKE) $@

app_i686:
	$(THIS_MAKE) $@

.C.o:
	$(THIS_MAKE) $@

.c.o:
	$(THIS_MAKE) $@

.PHONY: clean clean_all

clean:
	$(THIS_MAKE) $@

clean_all:
	$(THIS_MAKE) $@

# end of file