root / Whitix / branches / hybrid / user / system / Makefile

Revision 394, 0.7 kB (checked in by mwhitworth, 7 months ago)

Add -m32 for moduleadd build.

Line 
1CFLAGS = -ffreestanding -fno-builtin -I../libc/include -I../librtl -I../../include -fno-stack-protector -DMODULE -m32
2OBJS = moduleadd.o testm.o startup.o
3
4.c.o:
5        $(CC) $(CFLAGS) -c $*.c -o $*.o
6
7build: $(OBJS)
8        gcc -m32 -nostdlib -L../libc -L../librtl -L../posix -L../sdk/libs ../libc/init/init.o moduleadd.o -lstdc -lrtl -lpthread -o moduleadd -Wl,-I/linker
9        strip moduleadd
10        gcc -m32 -nostdlib -L../libc -L../librtl -L../posix -L../sdk/libs ../libc/init/init.o startup.o -lstdc -lrtl -lpthread -o startup -Wl,-I/linker
11
12install:
13        cp startup ../../CdRoot/System/Startup/
14        cp moduleadd ../../CdRoot/System/Modules/
15        cp testm.o ../../CdRoot/System/Modules/testm.sys
16       
17clean:
18        rm *.o -f
19        rm -f moduleadd startup
Note: See TracBrowser for help on using the browser.