[fba12eb6] | 1 | ## |
---|
| 2 | ## $Id$ |
---|
| 3 | ## |
---|
| 4 | |
---|
| 5 | |
---|
[586a31b] | 6 | INCLUDES = -I. |
---|
[f42b726] | 7 | |
---|
[fba12eb6] | 8 | # following are semi-implemented and untested |
---|
| 9 | UNUSED_C_FILES = devctl.c intr.c |
---|
| 10 | |
---|
| 11 | # These are really in the stand but not really functional |
---|
| 12 | BUILD_FOR_NOW_C_FILES = aio.c |
---|
| 13 | |
---|
| 14 | ENOSYS_C_FILES = execl.c execle.c execlp.c execv.c execve.c execvp.c fork.c \ |
---|
| 15 | pthreadatfork.c wait.c waitpid.c |
---|
| 16 | |
---|
| 17 | CANCEL_C_FILES = cancel.c cancelrun.c cleanuppop.c cleanuppush.c \ |
---|
| 18 | setcancelstate.c setcanceltype.c testcancel.c |
---|
| 19 | |
---|
| 20 | CONDITION_VARIABLE_C_FILES = cond.c condattrdestroy.c condattrgetpshared.c \ |
---|
| 21 | condattrinit.c condattrsetpshared.c condbroadcast.c \ |
---|
| 22 | conddefaultattributes.c conddestroy.c condinit.c condmp.c condsignal.c \ |
---|
| 23 | condsignalsupp.c condtimedwait.c condwait.c condwaitsupp.c |
---|
| 24 | |
---|
| 25 | ID_C_FILES = getegid.c geteuid.c getgid.c getgroups.c getlogin.c getpgrp.c \ |
---|
| 26 | getpid.c getppid.c getuid.c setpgid.c setsid.c |
---|
| 27 | |
---|
| 28 | KEY_C_FILES = key.c keycreate.c keydelete.c keygetspecific.c \ |
---|
| 29 | keyrundestructors.c keysetspecific.c |
---|
| 30 | |
---|
[bc51d7e9] | 31 | MEMORY_C_FILES = getpagesize.c mprotect.c |
---|
| 32 | |
---|
[fba12eb6] | 33 | MESSAGE_QUEUE_C_FILES = mqueue.c mqueueclose.c mqueuecreatesupp.c \ |
---|
| 34 | mqueuedeletesupp.c mqueuegetattr.c mqueuenametoid.c mqueuenotify.c \ |
---|
| 35 | mqueueopen.c mqueuereceive.c mqueuerecvsupp.c mqueuesend.c \ |
---|
| 36 | mqueuesendsupp.c mqueuesetattr.c mqueuetimedreceive.c mqueuetimedsend.c \ |
---|
[f602eeb] | 37 | mqueuetranslatereturncode.c mqueueunlink.c |
---|
[64f55e7] | 38 | |
---|
[fba12eb6] | 39 | MUTEX_C_FILES = mutex.c mutexattrdestroy.c mutexattrgetprioceiling.c \ |
---|
| 40 | mutexattrgetprotocol.c mutexattrgetpshared.c mutexattrinit.c \ |
---|
| 41 | mutexattrsetprioceiling.c mutexattrsetprotocol.c mutexattrsetpshared.c \ |
---|
| 42 | mutexdefaultattributes.c mutexdestroy.c mutexfromcorestatus.c \ |
---|
| 43 | mutexgetprioceiling.c mutexinit.c mutexlock.c mutexlocksupp.c mutexmp.c \ |
---|
| 44 | mutexsetprioceiling.c mutextimedlock.c mutextrylock.c mutexunlock.c |
---|
| 45 | |
---|
| 46 | PTHREAD_C_FILES = pthread.c pthreadsetcputime.c pthreadgetcputime.c \ |
---|
| 47 | pthreadgetcpuclockid.c pthreadonce.c pthreadequal.c pthreadself.c \ |
---|
| 48 | pthreadexit.c pthreaddetach.c pthreadjoin.c pthreadcreate.c \ |
---|
| 49 | pthreadattrsetdetachstate.c pthreadattrgetdetachstate.c \ |
---|
| 50 | pthreadattrgetstackaddr.c pthreadattrsetstackaddr.c \ |
---|
| 51 | pthreadattrgetstacksize.c pthreadattrsetstacksize.c pthreadattrinit.c \ |
---|
| 52 | pthreadattrdestroy.c pthreadsetschedparam.c pthreadgetschedparam.c \ |
---|
| 53 | pthreadattrsetschedparam.c pthreadattrgetschedparam.c \ |
---|
| 54 | pthreadattrgetschedpolicy.c pthreadattrsetschedpolicy.c \ |
---|
| 55 | pthreadattrgetinheritsched.c pthreadattrsetinheritsched.c \ |
---|
| 56 | pthreadattrgetscope.c pthreadattrsetscope.c |
---|
| 57 | |
---|
| 58 | PSIGNAL_C_FILES = psignal.c alarm.c kill.c killinfo.c pause.c \ |
---|
| 59 | psignalclearprocesssignals.c psignalsetprocesssignals.c \ |
---|
| 60 | psignalchecksignal.c psignalclearsignals.c psignalunblockthread.c \ |
---|
| 61 | pthreadkill.c pthreadsigmask.c sigaction.c sigaddset.c sigdelset.c \ |
---|
| 62 | sigemptyset.c sigfillset.c sigismember.c sigpending.c sigprocmask.c \ |
---|
| 63 | sigqueue.c sigsuspend.c sigtimedwait.c sigwait.c sigwaitinfo.c \ |
---|
| 64 | signal_2.c |
---|
| 65 | |
---|
| 66 | SEMAPHORE_C_FILES = semaphore.c semaphorecreatesupp.c semaphoredeletesupp.c \ |
---|
| 67 | semaphoremp.c semaphorenametoid.c semaphorewaitsupp.c semclose.c \ |
---|
| 68 | semdestroy.c semgetvalue.c seminit.c semopen.c sempost.c semtimedwait.c \ |
---|
| 69 | semtrywait.c semunlink.c semwait.c |
---|
| 70 | |
---|
| 71 | TIME_C_FILES = time.c posixtimespecsubtract.c posixtimespectointerval.c \ |
---|
| 72 | posixintervaltotimespec.c clockgetcpuclockid.c clockgetenableattr.c \ |
---|
| 73 | clockgetres.c clockgettime.c clocksetenableattr.c clocksettime.c \ |
---|
| 74 | nanosleep.c sleep.c |
---|
| 75 | |
---|
| 76 | # the timer manager needs to be split further but only after its |
---|
| 77 | # dependence on the Classic API Timer Manager is removed. |
---|
| 78 | TIMER_C_FILES = ptimer.c ptimer1.c |
---|
| 79 | |
---|
| 80 | C_FILES = adasupp.c $(CANCEL_C_FILES) $(CONDITION_VARIABLE_C_FILES) \ |
---|
[bc51d7e9] | 81 | $(ID_C_FILES) $(KEY_C_FILES) $(MEMORY_C_FILES) $(MESSAGE_QUEUE_C_FILES) \ |
---|
| 82 | $(MUTEX_C_FILES) $(PTHREAD_C_FILES) $(PSIGNAL_C_FILES) sched.c \ |
---|
| 83 | $(SEMAPHORE_C_FILES) sysconf.c $(TIME_C_FILES) $(TIMER_C_FILES) types.c \ |
---|
[dc7fb59b] | 84 | $(ENOSYS_C_FILES) $(BUILD_FOR_NOW_C_FILES) |
---|
[fba12eb6] | 85 | C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o) |
---|
| 86 | |
---|
| 87 | OBJS = $(C_O_FILES) |
---|
| 88 | |
---|
[9201e6b] | 89 | include $(top_srcdir)/../../../../automake/multilib.am |
---|
[3ac5d4e2] | 90 | include $(top_srcdir)/../../../../automake/compile.am |
---|
[fba12eb6] | 91 | include $(top_srcdir)/../../../../automake/lib.am |
---|
| 92 | |
---|
| 93 | # |
---|
| 94 | # Add local stuff here using += |
---|
| 95 | # |
---|
| 96 | |
---|
| 97 | AM_CPPFLAGS += -D__RTEMS_INSIDE__ |
---|
| 98 | |
---|
[df49c60] | 99 | all-local: ${ARCH} ${OBJS} |
---|
[fba12eb6] | 100 | |
---|
| 101 | # temporary so we can see how many things are left to implement |
---|
[df49c60] | 102 | not: |
---|
[fba12eb6] | 103 | grep -i NOT_IMPL $(C_FILES) | grep -v MP_NOT_IMPL |
---|
| 104 | @echo |
---|
| 105 | @echo |
---|
| 106 | @echo |
---|
| 107 | @echo `grep -i NOT_IMPL $(C_FILES) | grep -v MP_NOT_IMPL | wc -l ` places marked not implemented |
---|
| 108 | @echo `wc -l $(C_FILES) | grep total` lines of C code to test |
---|
| 109 | |
---|
| 110 | EXTRA_DIST = $(C_FILES) $(UNUSED_C_FILES) |
---|
| 111 | |
---|
| 112 | include $(top_srcdir)/../../../../automake/local.am |
---|