[Y-devel] Simple makefile for getting started
jswensen at intergate.com jswensen at intergate.com
Sun May 16 09:13:26 BST 2004
I am not a makefile guru by any means, but I wrote up this simple little one for
people who are trying to get started messing around with writing clients.
Hope it helps someone out. Also, is there a place where something like this
should be placed permanently? Or is there a utility already that will autogen
the whole configure, make, make install process based on a set of inputs. I see
in each client director there is a Makefile.am and Makefile.in, but I don't know
how to turn that into a Makefile, other than running the whole configure script
over again.
<<BEGIN CUT HERE>>
# Simple client makefile
###############################################################################
# Stuff you shouldn't mess with. This will include the basic Y stuff.
###############################################################################
INCLUDES = -I /usr/local/include/ -I /usr/local/include/Y -I
/usr/local/include/sigc++-1.2/ -I /usr/local/lib/sigc++-1.2/include/
LIBS = -lYc++ -Wl,--rpath -Wl,/usr/local/lib
# Edit this section to your hearts desire
USER_INCLUDES =
USER_LIBS =
OUT = yctl
SRC = yctl.cc test1.cc test2.cc test3.cc
OBJ = yctl.o test1.o test2.o test3.o
ALL: app
app: $(OBJ)
g++ $(OBJ) $(LIBS) $(USER_LIBS) -o $(OUT)
.cc.o:
g++ $(INCLUDES) $(USER_INCLUDES) -c $< -o $@
clean:
rm -f *.o
rm -f $(OUT)
<<END CUT HERE>>
-------------------------------------------------
This mail sent through IMP: https://horde.org/imp/
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved