# # Copyright 2000 (c) by David Schweikert, Swiss Federal # Institute of Technology, Computer Engineering and Networks # Laboratory. # # TOPSY -- A Teachable Operating System. Implementation of # a tiny and simple micro kernel for teaching purposes. # # For further information, please visit # http://www.tik.ee.ethz.ch/~topsy # # This software is provided under the terms of the GNU General # Public Licence. A full copy of the GNU GPL is provided in # the file COPYING found in the development root of Topsy. # # $Source: /usr/drwho/vault/cvs/topsy/Topsy/Net/Makefile.net,v $ # $Revision: 1.2 $ # Last Date of Change: $Date: 2000/04/03 17:45:29 $ by: $Author: gfa $ # # $Log: Makefile.net,v $ # Revision 1.2 2000/04/03 17:45:29 gfa # *** empty log message *** # # Revision 1.1 2000/03/31 17:50:32 gfa # Merged with /Net from several term projects # # # ...to be included by ../User/Makefile CC=gcc ARCH=mips INC=-I. -I../Memory/$(ARCH) -I../Topsy -I../Memory -I../Threads -I../IO -I../IO/$(ARCH) -I../Topsy/$(ARCH) ALLDIRS=ARP CVS Ethernet Ethertap ICMP IP Skeleton TCP UDP mips CFLAGS += -Wall OBJ=$(ARCH).obj NETINC = $(INC) -I./$(ARCH) -I../User NET_MISC_OBJS=../$(OBJ)/Topsy/Lock.o ../$(OBJ)/Topsy/$(ARCH)/SupportAsm.o \ ../$(OBJ)/Topsy/TMSem.o ../$(OBJ)/Threads/TMTimer.o NETFILES = NetInit.c NetBuf.c NetStat.c NetMain.c NetTest.c NetSyscall.c \ NetDebug.c NetAttr.c NetIO.c Semaphore.c \ NetIface.c NetConfig.c NetConfigARP.c NetModules.c \ Ethertap/NetEthertap.c Ethernet/NetEthernet.c ARP/NetARP.c \ IP/NetIP.c IP/NetIPchecksum.c IP/NetIPup.c IP/NetIPdown.c \ IP/NetIProute.c ICMP/NetICMP.c UDP/NetUDP.c \ TCP/Ports.c TCP/GPQueue.c TCP/nettcpTimer.c \ TCP/nettcpSocket.c TCP/nettcpTCP.c TCP/nettcpMain.c \ TCP/nettcpEcho.c TCP/nettcpTest.c TCP/nettcpHTTPServer.c #NETOBJS = $(NET_MISC_OBJS) $(patsubst %.c,../Net/$(OBJ)/%.o,$(NETFILES)) NETOBJS = $(patsubst %.c,$(OBJ)/%.o,$(NETFILES)) $(OBJ)/%.o: %.c NetDebug.h NetBuf.h NetModules.h $(OBJ) $(CC) $(CFLAGS) $(INC) $(NETINC) $(OPTIMIZE) -c $< -o $@ # this rule makes a tree of directories under $(ARCH).obj #$(OBJ): # mkdir $(OBJ) $(addprefix $(OBJ)/, $(ALLDIRS)) all: $(NETOBJS)