Advertisement
MdSadmanSiraj

makefile-arm

Jul 14th, 2022
1,183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.42 KB | None | 0 0
  1. BUILDROOT_HOME=/home/mssiraj/buildroot-2022.02.3
  2.  
  3. CC=$(BUILDROOT_HOME)/output/host/usr/bin/arm-linux-gcc
  4. CFLAGS=--sysroot=$(BUILDROOT_HOME)/output/staging
  5. INCLUDES=
  6. LFLAGS=
  7.  
  8. LIBS=-lcurl -uClibc -lc
  9.  
  10. SRC=requestor_guest.c
  11. OBJ=$(SRC:.c=.o)
  12. MAIN=testguest
  13.  
  14. RM=rm -rf
  15.  
  16. .c.o:
  17.     $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
  18.  
  19. $(MAIN): $(OBJ)
  20.     $(CC) $(CFLAGS) $(INCLUDES) -o $(MAIN) $(OBJ) $(LFLAGS) $(LIBS)
  21.  
  22. all: $(MAIN)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement