:: [DNG] What can be improved in this …
Top Pagina
Delete this message
Reply to this message
Auteur: Edward Bartolo
Datum:  
Aan: dng
Onderwerp: [DNG] What can be improved in this Makefile?
Hi,

Here is my Makefile for sn-lightweight (simple-netaid-lightweight):
----------------------------------------------------------------------------
CC=gcc
SRCPATH=./src
CFLAGS=-Iinclude
GTK2FLAGS=`pkg-config --libs --cflags gtk+-2.0`
D=src/
SOURCEFILES=$(D)auxiliaries.c $(D)signal_functions.c $(D)main_gui.c
$(D)dialog_gui.c $(D)sn-lightweight.c

all: clean sn-lightweight

sn-lightweight:
    $(CC) $(CFLAGS) $(GTK2FLAGS) -o sn-lightweight $(SOURCEFILES)


clean:
    rm -f sn-lightweight
--------------------------------------------------------------------


Althought make -f Makefile succeeds to compile and build an executable
and calling "git buildpackage --git-ignore-new" work, I think this
file can be improved. For instance, I find it rather ridiculous of
having to use $(D) repeatedly for every .c source file.

What can be done to improve this Makefile?
Thanks for all your patience.

Edward