Just testing c and makefiles
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.
 
 

18 lines
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)