Just testing c and makefiles
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

18 lignes
375 B

  1. # the compiler: gcc for C program, define as g++ for C++
  2. CC = tcc
  3. # compiler flags:
  4. # -g adds debugging information to the executable file
  5. # -Wall turns on most, but not all, compiler warnings
  6. CFLAGS = -g -Wall
  7. # the build target executable:
  8. TARGET = testcprod
  9. all: $(TARGET)
  10. $(TARGET): $(TARGET).c
  11. $(CC) $(CFLAGS) -o $(TARGET) $(TARGET).c
  12. clean:
  13. $(RM) $(TARGET)