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