| 1 | all: |
| 2 | @echo You must specify a compiler type: mingw or msvc |
| 3 | |
| 4 | mingw: import-mingw.exe |
| 5 | |
| 6 | import-mingw.exe: import.c |
| 7 | gcc -g `ecl-config --cflags` import.c -o $@ `ecl-config --ldflags` |
| 8 | |
| 9 | msvc: import-msvc.exe |
| 10 | |
| 11 | import-msvc.exe: import.c |
| 12 | ecl-cc --compile -c import.c |
| 13 | ecl-cc --link -Fe$@ import.obj |
| 14 | del /q import.obj |