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

_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to