Mercurial > ecos
view examples/Makefile @ 553:489b846deeff
* src/time.cxx (alarm_action): Added call to
cyg_posix_signal_sigwait() to wake up any sigwait()ing threads.
* src/signal.cxx (cyg_posix_signal_sigwait): Added this function
to export access to signal_sigwait conditional variable.
(sigtimedwait): Added call to cyg_posix_timer_asr() to allow timer
signals to be delivered here.
* src/pprivate.h: Added prototype for cyg_posix_signal_sigwait().
* cdl/posix.cdl:
* tests/signal3.c: Added this program to test interaction of
timers and signals, particularly sigwait(). Based on a test
program from N.Suresh <nsuresh@cdotb.ernet.in>.
| author | nickg |
|---|---|
| date | Fri, 31 Jan 2003 11:53:14 +0000 |
| parents | df4428db3e29 |
| children | e942a29011aa |
line wrap: on
line source
# Mostly written by Jonathan Larmour, Red Hat, Inc. # Reference to ecos.mak added by John Dallaway, eCosCentric Limited, 2003-01-20 # This file is in the public domain and may be used for any purpose # Usage: make ECOS_INSTALL=/path/to/ecos/install ECOS_INSTALL=$$(ECOS_INSTALL) # override on make command line include $(ECOS_INSTALL)/include/pkgconf/ecos.mak XCC = $(ECOS_COMMAND_PREFIX)gcc XCXX = $(XCC) XLD = $(XCC) CFLAGS = -I$(ECOS_INSTALL)/include CXXFLAGS = $(CFLAGS) LDFLAGS = -nostartfiles -L$(ECOS_INSTALL)/lib -Ttarget.ld # RULES .PHONY: all clean all: hello twothreads simple-alarm serial clean: -rm -f hello hello.o twothreads twothreads.o -rm -f simple-alarm simple-alarm.o serial serial.o -rm -f instrument-test instrument-test.o %.o: %.c $(XCC) -c -o $*.o $(CFLAGS) $(ECOS_GLOBAL_CFLAGS) $< %.o: %.cxx $(XCXX) -c -o $*.o $(CXXFLAGS) $(ECOS_GLOBAL_CFLAGS) $< %.o: %.C $(XCXX) -c -o $*.o $(CXXFLAGS) $(ECOS_GLOBAL_CFLAGS) $< %.o: %.cc $(XCXX) -c -o $*.o $(CXXFLAGS) $(ECOS_GLOBAL_CFLAGS) $< hello: hello.o $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $@.o twothreads: twothreads.o $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $@.o simple-alarm: simple-alarm.o $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $@.o serial: serial.o $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $@.o instrument-test: instrument-test.o $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $@.o
