|
Last change
on this file since 22 was 22, checked in by ogrimm, 17 years ago |
|
First commit of drsdaq program
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 1 | CC := gcc
|
|---|
| 2 | WFLAGS := -Wstrict-prototypes -Wmissing-prototypes \
|
|---|
| 3 | -Wmissing-declarations-Wimplicit -Wreturn-type -Wunused \
|
|---|
| 4 | -Wcomment -Wformat
|
|---|
| 5 | # -Wuninitialized -Werror
|
|---|
| 6 | DRIVER_PATH := ../..
|
|---|
| 7 | CPPFLAGS := -I$(DRIVER_PATH) -I$(DRIVER_PATH)/sis3100_calls
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 | CFLAGS := -g -ansi $(WFLAGS) -L$(DRIVER_PATH)/sis3100_calls
|
|---|
| 11 |
|
|---|
| 12 | srcdir := .
|
|---|
| 13 | cfiles := $(wildcard $(srcdir)/*.c)
|
|---|
| 14 | EXEC := $(cfiles:.c=)
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 | .PHONY: all
|
|---|
| 18 | all: $(EXEC)
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 | sis3100_control_read: sis3100_control_read.c $(DRIVER_PATH)/sis3100_calls/lib_sis3100.a
|
|---|
| 22 | $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< -l_sis3100
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 | sis3100_control_write: sis3100_control_write.c $(DRIVER_PATH)/sis3100_calls/lib_sis3100.a
|
|---|
| 26 | $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< -l_sis3100
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 | vme_sys_reset: vme_sys_reset.c $(DRIVER_PATH)/sis3100_calls/lib_sis3100.a
|
|---|
| 30 | $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< -l_sis3100
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 | clean:
|
|---|
| 34 | rm -f *.o core $(EXEC)
|
|---|
| 35 |
|
|---|
| 36 | depend:
|
|---|
| 37 | cp Makefile Makefile.bak
|
|---|
| 38 | sed -e '/^# DO NOT DELETE THIS LINE/,$$d' < Makefile.bak > Makefile
|
|---|
| 39 | echo '# DO NOT DELETE THIS LINE' >> Makefile
|
|---|
| 40 | echo ' ' >> Makefile
|
|---|
| 41 | for i in $(cfiles) ; do \
|
|---|
| 42 | echo checking $$i ; \
|
|---|
| 43 | $(CC) -M $(CPPFLAGS) $(srcdir)/$$i >> Makefile ; \
|
|---|
| 44 | done
|
|---|
| 45 | # DO NOT DELETE THIS LINE
|
|---|
| 46 |
|
|---|
| 47 |
|
|---|
| 48 |
|
|---|
| 49 |
|
|---|
| 50 |
|
|---|
| 51 |
|
|---|
| 52 |
|
|---|
| 53 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.