Advertisement
davide1409

Makefile

Nov 23rd, 2021
2,066
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.24 KB | None | 0 0
  1. CFLAGS=-Wall -Wextra -Wpedantic -g
  2. TARGET=ese1
  3. SRCS= list.c ese1.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.  
  15. clean:
  16.         -$(RM) $(TARGET) $(OBJS)
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement