Advertisement
MdSadmanSiraj

makefile

Jul 14th, 2022
705
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.33 KB | None | 0 0
  1. CC=gcc
  2. CCFLAGS=
  3. INCLUDES=
  4. LFLAGS=-L/usr/lib/x86_64-linux-gnu
  5. LIBS=-lcurl -lpthread
  6.  
  7. SRC=requestor.c
  8. OBJ=$(SRC:.c=.o)
  9. MAIN=testhost
  10.  
  11. RM=rm -rf
  12.  
  13. .c.o:
  14.     $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
  15.  
  16. $(MAIN): $(OBJ)
  17.     $(CC) $(CCFLAGS) $(INCLUDES) -o $(MAIN) $(OBJ) $(LFLAGS) $(LIBS)
  18.  
  19. all: $(MAIN)
  20.  
  21. clean:
  22.     $(RM) $(MAIN) *.o *~
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement