Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: https://svn.r-project.org/R/trunk@4397 00db46b3-68df-0310-9c12-caf00c1e9a41
- Loading branch information
ripley
committed
Apr 27, 1999
1 parent
00952fd
commit 0078403
Showing
3 changed files
with
41 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,32 @@ | ||
HIMGS =cam.h color.h console.h copy.h copy2.h copypaste.h cut.h erase.h \ | ||
help.h open.h open2.h paste.h print.h save.h | ||
|
||
all: ../stdimg.c ../stdimg.h | ||
|
||
../stdimg.c : $(HIMGS) | ||
echo "#include \"graphapp.h\"" > ../stdimg.c | ||
cat $(HIMGS) | sed "s/^rgb/static rgb/" | sed "s/^byte/static byte/" |sed "s/^imagedata/static imagedata/" >> ../stdimg.c | ||
|
||
../stdimg.h: ../stdimg.c | ||
grep ^image.*= ../stdimg.c | sed "s/ *=.*/;/" | sed "s/^image/extern image/" > ../stdimg.h | ||
|
||
|
||
%.h : %.gif imgcnv.exe | ||
imgcnv $*.gif $*.h | ||
|
||
# Commented out to avoid circular dependency | ||
#%.gif : %.h imgcnv.exe | ||
# imgcnv $*.h $*.gif | ||
|
||
#I don't think I will rebuild this too much times, so I don't try | ||
#to be clever | ||
imgcnv.exe: imgcnv.c | ||
gcc -mwindows -s -o imgcnv imgcnv.c ../*.c -lcomctl32 | ||
|
||
display.exe: display.c | ||
gcc -mwindows -s -o display display.c ../*.c -lcomctl32 | ||
|
||
|
||
clean: | ||
rm -f *~ \#*\# $(HIMGS) imgcnv.exe display.exe | ||
|
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,2 @@ | ||
Images taken from the V distribution (http://www.objectcentral.com). | ||
Running 'make' will rebuild ../stdimg.[ch] |
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,7 @@ | ||
#include "../graphapp.h" | ||
|
||
int AppMain(int argc,char **argv) { | ||
image img; | ||
img = loadimage(argv[1]); | ||
saveimage(img,argv[2]); | ||
} |