Advertisement
davide1409

Makefile

Nov 4th, 2021
1,067
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FLAGS=-Wall -Wextra -Wpedantic -g
  2. TARGET=queue
  3. SRCS= queue.c
  4. OBJS=$(SRCS:.c=.o)
  5.  
  6. %.o:%.c
  7.         $(CC) $(CFLAGS) $< -c -o $@
  8.  
  9.  
  10. all: $(OBJS)
  11.         $(CC) $(CFLAGS) $(OBJS) -o $(TARGET)
  12.  
  13. .PHONY:clean
  14.     clean:
  15.         -$(RM) $(TARGET) $(OBJS)
  16.  
Advertisement
RAW Paste Data Copied
Advertisement