You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

12 lines
302 B

  1. all:
  2. $(info call one of the following rules to build for a specific compiler: mingw, gnuc)
  3. mingw:
  4. gcc -DWIN32 example.c main-mingw.c -lopengl32 -mwindows -o example.exe
  5. gnuc:
  6. gcc -DLINUX -o example main-gnuc.c example.c -lGL -lGLU -lglut -ldl
  7. clean:
  8. rm -rf example
  9. rm -rf example.exe