Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Oct 2008 16:22:35 +0300
From:      Marin Atanasov <dnaeon@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: My interactive version of pkg_add - finished!
Message-ID:  <48E76E1B.60309@gmail.com>
In-Reply-To: <44myhl8mw1.fsf@be-well.ilk.org>
References:  <20081002124704.GA54477@lpthe.jussieu.fr>	<48E67175.80604@gmail.com> <44myhl8mw1.fsf@be-well.ilk.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This time I need your help to help create my Makefile.
To be honest this will be my first Makefile and I'm not
very sure that it is correctly written although it builds fine.

PROG=    pkg_add_it
SRCS=    fnode.c explode.c scan_directory.c scan_index_file.c pkg_add_it.c
OBJS=    fnode.o explode.o scan_directory.o scan_index_file.o pkg_add_it.o
CC=    gcc
LD=    gcc
CFLAGS=    -g -Wall
LDFLAGS=
RM=    /bin/rm -f

all: $(PROG)

$(PROG): $(OBJS)
    $(LD) $(LDFLAGS) $(OBJS) -o $(PROG)

%.o: %.c
    $(CC) $(CFLAGS) -c $<

clean:
    $(RM) $(PROG) $(OBJS)


Should I add something else to it or modify something?

Thanks!
Marin

-- 
Marin Atanasov
dnaeon AT gmail DOT com
daemon AT unix-heaven DOT org




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