|
Last change
on this file since 22 was 22, checked in by ogrimm, 17 years ago |
|
First commit of drsdaq program
|
-
Property svn:executable
set to
*
|
|
File size:
1.1 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 := ../../../V1.0
|
|---|
| 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 | .PHONY: all
|
|---|
| 17 | all: $(EXEC)
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 | frontirqtest: frontirqtest.c
|
|---|
| 21 | $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< -l_sis3100
|
|---|
| 22 |
|
|---|
| 23 | puls_lemo_out1: puls_lemo_out1.c
|
|---|
| 24 | $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< -l_sis3100
|
|---|
| 25 |
|
|---|
| 26 | send_irq_update: send_irq_update.c
|
|---|
| 27 | $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< -l_sis3100
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 | clean:
|
|---|
| 32 | rm -f *.o core $(EXEC)
|
|---|
| 33 |
|
|---|
| 34 | depend:
|
|---|
| 35 | cp Makefile Makefile.bak
|
|---|
| 36 | sed -e '/^# DO NOT DELETE THIS LINE/,$$d' < Makefile.bak > Makefile
|
|---|
| 37 | echo '# DO NOT DELETE THIS LINE' >> Makefile
|
|---|
| 38 | echo ' ' >> Makefile
|
|---|
| 39 | for i in $(cfiles) ; do \
|
|---|
| 40 | echo checking $$i ; \
|
|---|
| 41 | $(CC) -M $(CPPFLAGS) $(srcdir)/$$i >> Makefile ; \
|
|---|
| 42 | done
|
|---|
| 43 | # DO NOT DELETE THIS LINE
|
|---|
| 44 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.