[Anet-checkins] CVS: ANet/ANet_Daemon/Linux Makefile,NONE,1.1 main.c,NONE,1.1
Status: Abandoned
Brought to you by:
benad
From: Benoit N. <be...@us...> - 2001-11-05 23:27:06
|
Update of /cvsroot/anet/ANet/ANet_Daemon/Linux In directory usw-pr-cvs1:/tmp/cvs-serv7895/Linux Added Files: Makefile main.c Log Message: Added linked lists, Makefile, and did some cleanup --- NEW FILE: Makefile --- SHELL = /bin/sh # Add paths to all the headers here. header_paths = -I. -I../Common -I../Core -I../Common/Lists # Change compiler options here compiler = gcc -g ${header_paths} # Add source and header files paths here vpath %.c . vpath %.c ../Common/ vpath %.c ../Common/Lists/ vpath %.c ../Core/ vpath %.h . vpath %.h ../Common/ vpath %.h ../Common/Lists/ vpath %.h ../Core/ # Default rule to compile *.c files. %.o: %.c ${compiler} -c $< -o $@ # Linking target anetd: DoubleLinkedLists.o LinkedLists.o BinaryTrees.o main.o ${compiler} $^ -lm -o anetd # Add files to compile here. # Append file-specific header after the *.c files DoubleLinkedLists.o: DoubleLinkedLists.c LinkedLists.h LinkedLists.o: LinkedLists.c LinkedLists.h BinaryTrees.o: BinaryTrees.c LinkedLists.h main.o: main.c Modules.h # Header dependencies. Neat, no? Modules.h: Memory.h Packets.h XMLCommon.h LinkedLists.h @touch ../Common/Modules.h Packets.h: Memory.h @touch ../Common/Memory.h XMLCommon.h: Memory.h @touch ../Common/XMLCommon.h LinkedLists.h: ANetCommon.h @touch ../Common/Lists/LinkedLists.h # Special targets below. all: test clean: build_clean rm -f anetd build_clean: rm -f *.o .PHONY: all clean build_clean --- NEW FILE: main.c --- #include <stdio.h> #include <stdlib.h> #include "Modules.h" int main(int argc, char **argv) { printf("Starting ANet daemon...\n"); //Do some stuff here... printf("Closing ANet daemon...\n"); return 0; } |