[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Passing variables to a Makefile



Dear mentors,

in a package I prepare, there is the following line in a source/Makefile:

  CPPFLAGS=-O3 -funroll-loops -march=i686 -mfpmath=sse -msse  -mmmx

This is obviously not convenient for building on many platforms, so I
decided to override it with the following command in debian/rules:

  CPPFLAGS='$(CFLAGS)' $(MAKE) --environment-overrides --directory=source

However, I am quite unexperienced with makefiles, and my gut feeling
tells me that I may be doing something wrong... Can somebody tell me ?

( Just in case one wants to see more context, I have uploaded the package
on mentors: http://mentors.debian.net/debian/pool/main/d/dialign-t/dialign-t_0.2.2-1.dsc
It is work in progress unsuitable for anyghing else! )

Have a nice day,

-- 
Charles Plessy
http://charles.plessy.org
Wako, Saitama, Japan



Reply to: