mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-09-09 23:54:32 +00:00
restored specific compilation option since SDCC seems not supporting -MDD very well
introduced a snprintf macro as empty function
This commit is contained in:
parent
9a752dab15
commit
c55d3ded6c
@ -2,7 +2,7 @@
|
||||
# Makefile for z80/SDCC
|
||||
# @author Takahide Matsutsuka <markn@markn.org>
|
||||
#
|
||||
# $Id: Makefile.z80,v 1.12 2009/07/02 22:36:35 oliverschmidt Exp $
|
||||
# $Id: Makefile.z80,v 1.13 2009/07/09 18:26:55 matsutsuka Exp $
|
||||
#
|
||||
|
||||
### Compiler definitions
|
||||
@ -14,11 +14,12 @@ OBJCOPY = objcopy
|
||||
STRIP = strip
|
||||
|
||||
### Custom rules
|
||||
CUSTOM_RULE_C_TO_OBJECTDIR_O=1
|
||||
CUSTOM_RULE_ALLOBJS_TO_TARGETLIB=1
|
||||
CUSTOM_RULE_LINK=1
|
||||
|
||||
### Default flags
|
||||
CFLAGS += --std-c99 --vc -mz80
|
||||
CFLAGS += --std-c99 -mz80
|
||||
# --peep-file $(CONTIKI_CPU)/z80peephole.def
|
||||
ASFLAGS +=
|
||||
LDFLAGS += -mz80 --out-fmt-ihx --no-std-crt0
|
||||
@ -50,6 +51,10 @@ CONTIKI_PLATFORM_DIRS = $(PLATFORM_APPDIRS) \
|
||||
#directives. (i.e. #define, etc.)
|
||||
vpath %.cS $(CONTIKI_PLATFORM_DIRS)
|
||||
|
||||
#option -MMD doesn't work well on SDCC as of 2.9.0
|
||||
$(OBJECTDIR)/%.o: %.c
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
ifndef CUSTOM_RULE_CS_TO_OBJECTDIR_O
|
||||
$(OBJECTDIR)/%.o: %.cS
|
||||
cp $< $(OBJECTDIR)/$*.c
|
||||
|
@ -27,7 +27,7 @@
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: z80def.h,v 1.6 2008/07/02 15:02:33 matsutsuka Exp $
|
||||
* $Id: z80def.h,v 1.7 2009/07/09 18:26:55 matsutsuka Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -87,4 +87,6 @@ typedef unsigned int size_t;
|
||||
#define uip_ipaddr_copy(dest, src) \
|
||||
memcpy(dest, src, sizeof(*dest))
|
||||
|
||||
#define snprintf(a...)
|
||||
|
||||
#endif /* __Z80_DEF_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user