From owner-freebsd-questions Mon Feb 14 13:39:17 2000 Delivered-To: freebsd-questions@freebsd.org Received: from b41.ryd.student.liu.se (b41.ryd.student.liu.se [130.236.233.41]) by builder.freebsd.org (Postfix) with ESMTP id 17F904BBD for ; Mon, 14 Feb 2000 13:39:12 -0800 (PST) Received: (from johpe@localhost) by b41.ryd.student.liu.se (8.9.3/8.9.3) id WAA02723 for questions@FreeBSD.ORG; Mon, 14 Feb 2000 22:39:27 +0100 (CET) (envelope-from johpe) Date: Mon, 14 Feb 2000 22:39:27 +0100 From: Johan Pettersson To: FreeBSD question Subject: Makefile Message-ID: <20000214223927.A2698@b41.ryd.student.liu.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi! Have problem whith a makefile =/ Have read GNU Make but can't solve the problem. Following line work: cc -L/home/johpe/projekt/cn/src lab_2.c -lcable -lnsl How do I put this in a Makefile ? Have tried whith following: CC=cc PATH = /home/johpe159/TDTS43/cn/src LDFLAGS = -lcable -lnsl lab2 : lab_2.o libcable.a $(CC) -o lab2 lab_2.o lab_2.o : lab_2.c $(CC) $(PATH) -c lab_2.c $(LDFLAGS) //thx Johan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message