Advertisement
davide1409

Makefile

Nov 4th, 2021
2,676
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.23 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment
Advertisement