|
Revision 275, 431 bytes
(checked in by mwhitworth, 7 months ago)
|
|
Update user makefiles to work on 64-bit hosts.
|
| Line | |
|---|
| 1 | CFLAGS = -ffreestanding -fno-builtin -I../libc/include -I../librtl -I../sdk/include -fno-stack-protector -m32 |
|---|
| 2 | |
|---|
| 3 | OBJS = main.o builtins.o |
|---|
| 4 | |
|---|
| 5 | .c.o: |
|---|
| 6 | $(CC) $(CFLAGS) -c $*.c -o $*.o |
|---|
| 7 | |
|---|
| 8 | build: $(OBJS) |
|---|
| 9 | gcc -m32 -nostdlib -L../libc -L../librtl -L../posix -L../sdk/libs ../libc/init/init.o $(OBJS) -lstdc -lrtl -lconsole -lpthread -o burn -Wl,-I/linker |
|---|
| 10 | strip burn |
|---|
| 11 | |
|---|
| 12 | clean: |
|---|
| 13 | rm *.o -f |
|---|
| 14 | rm -f burn |
|---|
| 15 | |
|---|
| 16 | install: |
|---|
| 17 | cp burn ../../CdRoot/Applications |
|---|