Changeset 444 for trunk/user/pgcd


Ignore:
Timestamp:
May 16, 2018, 8:31:35 PM (4 years ago)
Author:
satin@…
Message:

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

Location:
trunk/user/pgcd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/user/pgcd/Makefile

    r440 r444  
    1111OBJS = build/pgcd.o
    1212
    13 INCLUDES = -I. -I$(LIBC_INCLUDE)
     13INCLUDES = -I. -I$(LIBC_INCLUDE) -I$(LIBALMOSMKH_INCLUDE) -I$(SHARED_INCLUDE) -I$(LIBPTHREAD_INCLUDE)
    1414
    1515compile: dirs build/pgcd.elf
    1616
    1717build/pgcd.elf : $(OBJS) pgcd.ld
    18         $(LD) -o $@ -T pgcd.ld $(OBJS) -nostdlib -L$(LIBC) -lc
     18        $(LD) -o $@ -T pgcd.ld $(OBJS) -nostdlib -L$(LIBC) -L$(LIBALMOSMKH) -L$(LIBPTHREAD) -lalmos-mkh -lc -lalmos-mkh -lpthread -lc
    1919        $(DU) -D $@ > $@.txt
    2020
    2121build/pgcd.o : pgcd.c
    22         $(CC) $(INCLUDES) -L$(LIBC) $(CFLAGS) -c -o  $@ $<
     22        $(CC) $(INCLUDES) $(CFLAGS) -c -o  $@ $<
     23        $(DU) -D $@ > $@.txt
    2324
    2425dirs:
  • trunk/user/pgcd/pgcd.c

    r442 r444  
    1010#include <stdlib.h>
    1111#include <stdio.h>
    12 
     12#include <almos-mkh.h>
    1313
    1414///////////
Note: See TracChangeset for help on using the changeset viewer.