My interactive version of pkg_add - finished!

Marin Atanasov dnaeon at gmail.com
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
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



More information about the freebsd-ports mailing list