root / Whitix / branches / hybrid / make.inc

Revision 498, 0.6 kB (checked in by mwhitworth, 2 months ago)

Add -fno-common to .

Line 
1#Define DEPTH before including this file
2
3.PHONY: clean
4.IGNORE: clean
5
6GCC = gcc
7CPP = gpp
8ASM = nasm
9CFLAGS = -fomit-frame-pointer -ffreestanding -fno-stack-protector -fno-builtin -nostdlib -m32 -Wall -Wextra -O2 -I$(DEPTH)include
10BE_VERBOSE=0
11
12.c.o:
13        $(GCC) $(CFLAGS) -c $*.c -o $*.o
14
15.SUFFIXES: .sys .c
16.c.sys:
17        $(GCC) $(CFLAGS) -DMODULE -fno-common -c $*.c -o $*.sys
18       
19#nasm assembly files
20
21.asm:
22        $(ASM) -f bin $*.asm -o
23        @echo "Compiling $*.asm"
24
25.s.o:
26        $(ASM) -f elf $*.s -o $*.o
27        @echo "Compiling $*.s"
28
29#gas assembly files
30.S.o:
31        $(GCC) -ffreestanding -fleading-underscore -fno-builtin -m32 -c $*.S -o $*.o
32        @echo "Compiling $*.S"
Note: See TracBrowser for help on using the browser.