Advertisement
Mark2020H

Makefile for GTK meter part 3

Oct 31st, 2020
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.70 KB | None | 0 0
  1. # Make file  for the  GTK Instrumentation meter part3  */
  2. # MD Harrington
  3. # basic GTK+ app makefile MD Harrington 30th April 2018
  4. # Change to suite your target name file or target executable name
  5. TARGET = InstrumentMeter
  6. # your source file you want to compile is changed here
  7. SOURCES = Meter1.c
  8. OBJS    = ${SOURCES:.c=.o}
  9. CFLAGS  = -Wall -Wextra -v $(shell pkg-config --cflags gtk+-2.0)
  10. LDFLAGS =$(shell pkg-config --libs gtk+-2.0) -lm -rdynamic
  11. CC      = gcc -c
  12. LINKER  = gcc -o
  13.  
  14.  
  15. $(TARGET) :obj
  16.     @${LINKER} ${TARGET} ${OBJS} ${LDFLAGS}
  17.     @echo "linking complete"
  18.  
  19. obj :
  20.     @${CC} ${CFLAGS} ${SOURCES}
  21.     @echo "Compilation complete!"
  22.  
  23. clean:
  24.     rm -f $(OBJS)
  25.     rm -f $(PACKAGE)
  26.  
  27.  
  28. # end of file
  29.  
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement