Last change
on this file since 489 was
444,
checked in by satin@…, 7 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
1.1 KB
|
Rev | Line | |
---|
[444] | 1 | NEWLIB_CFLAGS = `if [ -d ${objroot}/newlib ]; then echo -I${objroot}/newlib/targ-include -I${srcroot}/newlib/libc/include; fi` |
---|
| 2 | NEWLIB_LDFLAGS = `if [ -d ${objroot}/newlib ]; then echo -B${objroot}/newlib/ -L${objroot}/newlib/; fi` |
---|
| 3 | |
---|
| 4 | INCLUDES = -I. -I$(srcdir)/.. |
---|
| 5 | # Note that when building the library, ${MULTILIB} is not the way multilib |
---|
| 6 | # options are passed; they're passed in $(CFLAGS). |
---|
| 7 | CFLAGS_FOR_TARGET = -O2 -g ${MULTILIB} ${INCLUDES} ${NEWLIB_CFLAGS} |
---|
| 8 | LDFLAGS_FOR_TARGET = ${MULTILIB} ${NEWLIB_LDFLAGS} |
---|
| 9 | AR_FLAGS = rc |
---|
| 10 | |
---|
| 11 | .c.o: |
---|
| 12 | $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $< |
---|
| 13 | |
---|
| 14 | .C.o: |
---|
| 15 | $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $< |
---|
| 16 | .s.o: |
---|
| 17 | $(AS) $(ASFLAGS_FOR_TARGET) $(INCLUDES) $(ASFLAGS) -o $*.o $< |
---|
| 18 | |
---|
| 19 | # |
---|
| 20 | # GCC knows to run the preprocessor on .S files before it assembles them. |
---|
| 21 | # |
---|
| 22 | .S.o: |
---|
| 23 | $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -c $< |
---|
| 24 | |
---|
| 25 | # |
---|
| 26 | # this is a bogus target that'll produce an assembler from the |
---|
| 27 | # C source with the right compiler options. this is so we can |
---|
| 28 | # track down code generation or debug symbol bugs. |
---|
| 29 | # |
---|
| 30 | .c.s: |
---|
| 31 | $(CC) $(CFLAGS_FOR_TARGET) -S $(INCLUDES) $(CFLAGS) $< |
---|
Note: See
TracBrowser
for help on using the repository browser.