IDLC=orbit-idl-2 CFLAGS=$(shell pkg-config ORBit-2.0 ORBit-CosNaming-2.0 directfb --cflags) # -lrt is needed for using shm_open: LDFLAGS=$(shell pkg-config ORBit-2.0 ORBit-CosNaming-2.0 directfb --libs) -lrt TARGETS=nitpicker-server nitpicker-test-client IDLOUT1=nitpicker-common.c nitpicker.h nitpicker-skels.c nitpicker-stubs.c IDLOUT2=nitevent-common.c nitevent.h nitevent-skels.c nitevent-stubs.c all: $(IDLOUT1) $(IDLOUT2) nitpicker-server nitpicker-test-client # Generate: # nitpicker-common.c nitpicker.h nitpicker-skels.c nitpicker-stubs.c $(IDLOUT1): nitpicker.idl $(IDLC) nitpicker.idl $(IDLOUT2): nitevent.idl $(IDLC) nitevent.idl # Here's how to make -skelimp.c in ORBit: %-skelimpl.c: %.idl $(IDLC) --skeleton-impl $^ nitpicker-server.o : nitpicker-server.c nitpicker-skelimpl.c nitpicker-test-client : nitpicker-test-client.o nitpicker-stubs.o nitpicker-common.o nitevent-common.o examples-toolkit.o nitpicker-server : nitpicker-server.o nitpicker-skels.o nitpicker-common.o nitevent-common.o nitevent-stubs.o examples-toolkit.o view.o buffer.o client.o sysfuncs.o # Make vi-compatible tags: tags: ctags *.[ch] /usr/include/orbit-2.0/orbit/*.h /usr/include/orbit-2.0/orbit/*/*.h # Make emacs-compatible tags: TAGS: ctags -e *.[ch] /usr/include/orbit-2.0/orbit/*.h /usr/include/orbit-2.0/orbit/*/*.h