From owner-freebsd-questions@FreeBSD.ORG Sun Oct 31 11:34:29 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9979106564A for ; Sun, 31 Oct 2010 11:34:29 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6CC488FC17 for ; Sun, 31 Oct 2010 11:34:29 +0000 (UTC) Received: by bwz3 with SMTP id 3so3814111bwz.13 for ; Sun, 31 Oct 2010 04:34:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=fiAITRS2lN2jKEb1oyixXk1KKaRSguXMAmdVwoh/2m4=; b=t1kfVcwzK6KSkLKdLxduauTNGCEOf8VUy70aTqBla5Gz9KRIBO+kaEfOyanM9JWM/E 3Nm2yJEzDpaX26XV0oBqa3Dx8zxLIE1tKrFvoEJZ8fsDetN09yDNd9glW2my425FsPZK cqGAR3UU4ul3+FaPYVKau6VIWRaVF33OVNmr4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=kgLZ+mQLK/X/ON/BXPkrRnYO21C2iBkDNlIT9W81zgbUcSZ2ICL7i2Pshahn5o+iGL oHeSBY8mAK0UUj3FWhbTP+7jWznmd2JQePiwnGVQ0/fRvdBl29rMUHSrlkZB37tJBVEX zrE1TR6jUB/g0WBlFS0IDXHVDzMgemNmaftz4= MIME-Version: 1.0 Received: by 10.204.120.195 with SMTP id e3mr5510842bkr.77.1288524868122; Sun, 31 Oct 2010 04:34:28 -0700 (PDT) Received: by 10.204.77.1 with HTTP; Sun, 31 Oct 2010 04:34:28 -0700 (PDT) Date: Sun, 31 Oct 2010 12:34:28 +0100 Message-ID: From: David DEMELIER To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: Portable Makefile(s) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Oct 2010 11:34:29 -0000 Hello, I'm working on many projects, and writing makefile is really painful. I love the BSD Makefile syntax obviously, but I also love that people using Linux could run make to build my projects too. And using BSD makefile syntax disallow this. Reducing the makefile to the minimal makes them portable, but then you canno't use loops, conditionnals, and this is getting my nerves. What could I do to write Makefile compatible on every operating systems ? I'm thinking about Cmake but I hate the syntax, also for dmake... Kind regards, -- Demelier David