Changeset 445 for trunk/user/pgcd


Ignore:
Timestamp:
May 29, 2018, 9:27:23 AM (4 years ago)
Author:
alain
Message:

Restructure the mini_libc.

Location:
trunk/user/pgcd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/user/pgcd/Makefile

    r444 r445  
    11############################################################################
    2 # Makefile for the ALMOS-MKH "pgcd" application
     2# Makefile for the "pgcd" application                                      #
    33############################################################################
    44
     
    1111OBJS = build/pgcd.o
    1212
    13 INCLUDES = -I. -I$(LIBC_INCLUDE) -I$(LIBALMOSMKH_INCLUDE) -I$(SHARED_INCLUDE) -I$(LIBPTHREAD_INCLUDE)
     13INCLUDES = -I.                      \
     14           -I$(LIBC_INCLUDE)        \
     15           -I$(LIBPTHREAD_INCLUDE)  \
     16           -I$(LIBALMOSMKH_INCLUDE) \
     17           -I$(SHARED_INCLUDE)
    1418
    1519compile: dirs build/pgcd.elf
    1620
    1721build/pgcd.elf : $(OBJS) pgcd.ld
    18         $(LD) -o $@ -T pgcd.ld $(OBJS) -nostdlib -L$(LIBC) -L$(LIBALMOSMKH) -L$(LIBPTHREAD) -lalmos-mkh -lc -lalmos-mkh -lpthread -lc
     22        $(LD) -o $@ -T pgcd.ld $(OBJS) -L$(LIBC) -L$(LIBALMOSMKH) -L$(LIBPTHREAD) -lc -lpthread -lalmosmkh -lpthread -lc
    1923        $(DU) -D $@ > $@.txt
    2024
  • trunk/user/pgcd/pgcd.c

    r444 r445  
    88
    99
    10 #include <stdlib.h>
    1110#include <stdio.h>
    12 #include <almos-mkh.h>
     11#include <almosmkh.h>
    1312
    1413///////////
     
    2019
    2120    get_cycle( &cycle );
    22     printf( "\n[PGCD] starts / cycle %d\n", (unsigned int)cycle );
     21    printf( "\n\n[PGCD] starts / cycle %d\n", (unsigned int)cycle );
    2322
    2423    while (1)
Note: See TracChangeset for help on using the changeset viewer.