diff --git a/include/stddef.h b/include/stddef.h new file mode 100644 index 00000000..fa5972fa --- /dev/null +++ b/include/stddef.h @@ -0,0 +1,33 @@ +/* + * Copyright 2010 Stefan Lankes, Chair for Operating Systems, + * RWTH Aachen University + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * This file is part of MetalSVM. + */ + +#ifndef __ANSI_STDDEF_H__ +#define __ANSI_STDDEF_H__ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/include/string.h b/include/string.h new file mode 100644 index 00000000..750f474a --- /dev/null +++ b/include/string.h @@ -0,0 +1,33 @@ +/* + * Copyright 2010 Stefan Lankes, Chair for Operating Systems, + * RWTH Aachen University + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * This file is part of MetalSVM. + */ + +#ifndef __ANSI_STRING_H__ +#define __ANSI_STRING_H__ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/lwip/Makefile b/lwip/Makefile index 8070e61b..214af6e1 100644 --- a/lwip/Makefile +++ b/lwip/Makefile @@ -1,7 +1,7 @@ SUBDIRS = src -defaul: - $(MAKE) all +default: + for i in $(SUBDIRS); do $(MAKE) -C $$i default; done all: for i in $(SUBDIRS); do $(MAKE) -C $$i all; done diff --git a/lwip/src/api/Makefile b/lwip/src/api/Makefile index 27dccb42..0f09bd66 100644 --- a/lwip/src/api/Makefile +++ b/lwip/src/api/Makefile @@ -6,15 +6,10 @@ OBJS += $(patsubst %.c, %.o, $(filter %.c, $(C_source))) %.o : %.c $(CC) -c $(CFLAGS) -o $@ $< -default: - $(MAKE) all - -all: - $(MAKE) $(LIBLWIP) - -$(LIBLWIP): $(OBJS) - $(AR) $(ARFLAGS) $(LIBLWIP) $(OBJS) - +default: $(OBJS) + +all: $(OBJS) + clean: $(RM) *.o *~ diff --git a/lwip/src/core/Makefile b/lwip/src/core/Makefile index 3111abfc..4f4c120c 100644 --- a/lwip/src/core/Makefile +++ b/lwip/src/core/Makefile @@ -7,16 +7,11 @@ OBJS += $(patsubst %.c, %.o, $(filter %.c, $(C_source))) %.o : %.c $(CC) -c $(CFLAGS) -o $@ $< -default: +default: $(OBJS) for i in $(SUBDIRS); do $(MAKE) -C $$i default; done - $(MAKE) all -all: +all: $(OBJS) for i in $(SUBDIRS); do $(MAKE) -C $$i all; done - $(MAKE) $(LIBLWIP) - -$(LIBLWIP): $(OBJS) - $(AR) $(ARFLAGS) $(LIBLWIP) $(OBJS) clean: for i in $(SUBDIRS); do $(MAKE) -C $$i clean; done diff --git a/lwip/src/core/ipv4/Makefile b/lwip/src/core/ipv4/Makefile index de3fb439..f042189d 100644 --- a/lwip/src/core/ipv4/Makefile +++ b/lwip/src/core/ipv4/Makefile @@ -6,15 +6,10 @@ OBJS += $(patsubst %.c, %.o, $(filter %.c, $(C_source))) %.o : %.c $(CC) -c $(CFLAGS) -o $@ $< -default: - $(MAKE) all - -all: - $(MAKE) $(LIBLWIP) - -$(LIBLWIP): $(OBJS) - $(AR) $(ARFLAGS) $(LIBLWIP) $(OBJS) +default: $(OBJS) +all: $(OBJS) + clean: $(RM) *.o *~ diff --git a/lwip/src/netif/Makefile b/lwip/src/netif/Makefile index f7aff504..1e87c3f6 100644 --- a/lwip/src/netif/Makefile +++ b/lwip/src/netif/Makefile @@ -6,15 +6,10 @@ OBJS += $(patsubst %.c, %.o, $(filter %.c, $(C_source))) %.o : %.c $(CC) -c $(CFLAGS) -o $@ $< -default: - $(MAKE) all - -all: - $(MAKE) $(LIBLWIP) - -$(LIBLWIP): $(OBJS) - $(AR) $(ARFLAGS) $(LIBLWIP) $(OBJS) - +default: $(OBJS) + +all: $(OBJS) + clean: $(RM) *.o *~