My interactive version of pkg_add - finished!

Marin Atanasov dnaeon at
Sat Oct 4 13:21:29 UTC 2008

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
RM=    /bin/rm -f

all: $(PROG)

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

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

    $(RM) $(PROG) $(OBJS)

Should I add something else to it or modify something?


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

More information about the freebsd-ports mailing list