[go: up one dir, main page]

Menu

[r2]: / trunk / apps / Rules.make  Maximize  Restore  History

Download this file

21 lines (14 with data), 488 Bytes

# Rules shared between multiple applications' Makefiles #

CFLAGS		= -m32 -Wall -O2 -fno-stack-protector -fomit-frame-pointer -nostdinc -nostdlib -fno-builtin -I$(INCLUDE)

LDFLAGS		= -melf_i386 -N -S -X -nostdlib -lc -L$(LIB) -T$(LDSCRIPT)
LDFLAGS16 	= -melf_i386 -Ttext 0x10000 -s --oformat=binary
LDSCRIPT 	= $(APPS)/app.ld

%.o: %.S
	@echo AS  $<
	$(AS) $(CFLAGS) -c -o $@ $<

%.o16: %.S
	@echo AS  $<
	$(AS) $(CFLAGS) -c -o$@ $<

%.o: %.c
	@echo CC  $<
	$(CC) $(CFLAGS) -c -o $@ $<