[Anet-checkins] CVS: ANet/ANet_Daemon/Linux Makefile,1.6,1.7 Makefile.in,1.4,NONE build_exclusion.tx
Status: Abandoned
Brought to you by:
benad
From: Benoit N. <be...@us...> - 2002-05-06 23:19:47
|
Update of /cvsroot/anet/ANet/ANet_Daemon/Linux In directory usw-pr-cvs1:/tmp/cvs-serv4430 Modified Files: Makefile Removed Files: Makefile.in build_exclusion.txt build_locations.txt build_makefile.pl Log Message: Cleaned up Makefile Index: Makefile =================================================================== RCS file: /cvsroot/anet/ANet/ANet_Daemon/Linux/Makefile,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Makefile 1 Dec 2001 21:59:38 -0000 1.6 --- Makefile 6 May 2002 23:19:45 -0000 1.7 *************** *** 1,30 **** ! SHELL = /bin/sh ! all: build ! Makefile_real.out: ! perl build_makefile.pl > Makefile.in2 ! cat Makefile.in Makefile.in2 > Makefile_real.out ! rm -f Makefile.in2 ! build: Makefile_real.out ! @$(MAKE) -j --no-print-directory -f Makefile_real.out ! build_clean: ! rm -f *.o ! clean: ! rm -f anetd ! rm -f *.o ! rm -f Makefile.in2 ! rm -f Makefile_real.out ! rebuild: ! rm -f Makefile.out ! perl build_makefile.pl > Makefile.in2 ! cat Makefile.in Makefile.in2 > Makefile_real.out ! rm -f Makefile.in2 ! @$(MAKE) -j --no-print-directory -f Makefile_real.out ! .PHONY: all build clean rebuild --- 1,38 ---- ! # Change SOURCE for the source files and PATHS to where the source files ! # and the header files will be searched. The file names MUST be unique ! # throughout the project. ! SOURCE = main.c XMLParser.c Args.c Memory.c LinkedLists.c BinaryTrees.c DoubleLinkedLists.c ! PATHS = . .. ../Common ../Core ../Client_Interface ../Common/Lists ! # Compiler and linker settings. ! EXECUTABLE_NAME = anetd ! CC = gcc ! CFLAGS = -g -I/usr/include/gnome-xml ! LDLIBS = -lm -lxml ! # Everything below is automatic. ! # Yep. The cleanest, smartest Makefile I've seen. ! # Only one dependency file ("deps"), all the binaries stay in the ! # current directory, everything is clean, NO shell script... ! all: deps $(EXECUTABLE_NAME) ! OBJECTS = $(SOURCE:%.c=%.o) ! CFLAGS += $(patsubst %, -I%, $(PATHS)) ! vpath %.h $(PATHS) ! vpath %.c $(PATHS) ! deps: $(OBJECTS) $(SOURCE) ! $(CC) -MM $(CFLAGS) $(filter %.c, $^) > deps ! include deps ! $(EXECUTABLE_NAME): $(OBJECTS) ! $(CC) $(LDFLAGS) -o $(EXECUTABLE_NAME) $(LOADLIBES) $(LDLIBS) $^ + clean: + rm -f *.o + rm -f $(EXECUTABLE_NAME) + rm -f deps + + .PHONY: all clean \ No newline at end of file --- Makefile.in DELETED --- --- build_exclusion.txt DELETED --- --- build_locations.txt DELETED --- --- build_makefile.pl DELETED --- |