diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-05-23 02:21:46 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-05-23 02:21:46 +0200 |
commit | 9ef3ee90aad6f98c15ad98e4226b2a41b38820fa (patch) | |
tree | 7b05e0c471709029e1aa9980cd3acb176f2d8f59 | |
parent | bad79d577c8b7e87de5113bbb03c3de72c06f4a1 (diff) |
fix external.patch
-rw-r--r-- | procfs/Makefile | 77 |
1 files changed, 31 insertions, 46 deletions
diff --git a/procfs/Makefile b/procfs/Makefile index 28205962..78f20c43 100644 --- a/procfs/Makefile +++ b/procfs/Makefile @@ -1,46 +1,31 @@ -TARGET = procfs -OBJS = procfs.o netfs.o procfs_dir.o \ - process.o proclist.o rootdir.o dircat.o main.o mach_debugUser.o -LIBS = -lnetfs -lps -lfshelp -lpthread - -CC = gcc -CFLAGS = -Wall -g -CPPFLAGS = -LDFLAGS = - -ifdef PROFILE -CFLAGS= -g -pg -CPPFLAGS= -DPROFILE -LDFLAGS= -static -LIBS= -lnetfs -lfshelp -liohelp -lps -lports -lpthread -lihash -lshouldbeinlibc -endif - -CPPFLAGS += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 - -all: $(TARGET) - -rootdir.o: rootdir.c mach_debug_U.h - -$(TARGET): $(OBJS) - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) - -clean: - $(RM) $(TARGET) $(OBJS) - -# This is the gist of the MIG user stub handling from Hurd's build -# system: - -# Where to find .defs files. -vpath %.defs /usr/include/mach_debug - -MIG = mig -MIGCOM = $(MIG) -cc cat - /dev/null -MIGCOMFLAGS := -subrprefix __ - -%.udefsi: %.defs - $(CPP) -x c $(CPPFLAGS) $(MIGUFLAGS) $($*-MIGUFLAGS) \ - $< -o $*.udefsi - -%_U.h %User.c: %.udefsi - $(MIGCOM) $(MIGCOMFLAGS) $(MIGCOMUFLAGS) $($*-MIGCOMUFLAGS) < $< \ - -user $*User.c -server /dev/null -header $*_U.h +# Makefile - for procfs +# +# Copyright (C) 2008 Free Software Foundation, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2, or (at +# your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +dir := procfs +makemode := server + +target = procfs + +SRCS = procfs.c netfs.c procfs_dir.c process.c proclist.c rootdir.c dircat.c main.c mach_debugUser.c +LCLHDRS = dircat.h main.h process.h procfs.h procfs_dir.h proclist.h rootdir.h + +OBJS = $(SRCS:.c=.o) +HURDLIBS = netfs fshelp iohelp ps ports ihash shouldbeinlibc +OTHERLIBS = -lpthread + +include ../Makeconf |