Skip to content

Commit

Permalink
commit gnuwin32 sources
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/gnuwin32/graphapp/gifs/Makefile
@@ -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

2 changes: 2 additions & 0 deletions src/gnuwin32/graphapp/gifs/Readme
@@ -0,0 +1,2 @@
Images taken from the V distribution (http://www.objectcentral.com).
Running 'make' will rebuild ../stdimg.[ch]
7 changes: 7 additions & 0 deletions src/gnuwin32/graphapp/gifs/imgcnv.c
@@ -0,0 +1,7 @@
#include "../graphapp.h"

int AppMain(int argc,char **argv) {
image img;
img = loadimage(argv[1]);
saveimage(img,argv[2]);
}

0 comments on commit 0078403

Please sign in to comment.