-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
neelin
committed
Apr 9, 2001
1 parent
7ed0707
commit 18bacbf
Showing
3 changed files
with
729 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# -------------------------------------------------------------------- | ||
# | ||
# Generic Makefile | ||
# | ||
# if you are creating only one executable, you need only modify the | ||
# following lines: | ||
|
||
PROG = test_fix_dicom_coords # - program name. | ||
PROG_OBJ = test_fix_dicom_coords.o fix_dicom_coords.o # - program objects (and subroutines). | ||
OPT = -O # - compiler options. | ||
INCLUDES = -I../../Acr_nema # - include paths. | ||
LDFLAGS = ../../Acr_nema/libacrnema.a -lm # - load flags. | ||
|
||
# -------------------------------------------------------------------- | ||
|
||
.SUFFIXES: .ln # tell make to watch for .ln's | ||
|
||
CFLAGS = $(OPT) $(INCLUDES) # CFLAGS and LINTFLAGS should | ||
LINTFLAGS = -m -x -u $(INCLUDES) # be same, except for -g/-O | ||
|
||
.c.ln: # defines the rule for creating .ln, may be -i for some platforms | ||
lint $(LINTFLAGS) -c $< -o $@ | ||
|
||
.c.o: # defines the rule for creating .o,this is automatically defined) | ||
$(CC) $(CFLAGS) -c $< -o $@ | ||
|
||
LINT_LIST = $(PROG_OBJ:.o=.ln) # list of lint files in program | ||
|
||
build: $(PROG) | ||
|
||
lint: lint_$(PROG) | ||
|
||
all: build lint | ||
|
||
$(PROG): $(PROG_OBJ) # how to create executable | ||
$(CC) $(PROG_OBJ) -o $@ $(LDFLAGS) | ||
|
||
lint_$(PROG): $(LINT_LIST) # how to lint the executable source | ||
lint -u $(LINTFLAGS) $(LINT_LIST) | ||
|
||
clean: | ||
\rm -f $(PROG) $(PROG_OBJ) $(LINT_LIST) |
Oops, something went wrong.