Skip to content

Commit

Permalink
* make sure generated file is called 'a.exe' so you can
Browse files Browse the repository at this point in the history
  compile in GNU/Linux (and other OS'es)


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2096 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Andreas Remar committed Feb 9, 2006
1 parent f2a5bf6 commit d6f2da7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions c_runtime/libf2c/makefile.u
Expand Up @@ -178,9 +178,12 @@ xwsne.o: fio.h
xwsne.o: lio.h
xwsne.o: fmt.h

# x05andre, 2006-01-27
# Always call the generated file "a.exe", since it's not certain that
# the file will be called that on other OS'es than Windows.
arith.h: arithchk.c
$(CC) $(CFLAGS) -DNO_FPINIT arithchk.c -lm ||\
$(CC) -DNO_LONG_LONG $(CFLAGS) -DNO_FPINIT arithchk.c -lm
$(CC) $(CFLAGS) -DNO_FPINIT arithchk.c -lm -o a.exe ||\
$(CC) -DNO_LONG_LONG $(CFLAGS) -DNO_FPINIT arithchk.c -lm -o a.exe
./a.exe >arith.h
rm -f a.exe arithchk.o

Expand Down

0 comments on commit d6f2da7

Please sign in to comment.