Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Feb 2000 22:39:27 +0100
From:      Johan Pettersson <johpe159@student.liu.se>
To:        FreeBSD question <questions@FreeBSD.ORG>
Subject:   Makefile
Message-ID:  <20000214223927.A2698@b41.ryd.student.liu.se>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000214223927.A2698>