SHARE
TWEET

Untitled

a guest Nov 16th, 2019 106 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. martin@magni:~/src/msoak$ cat Makefile
  2. LDFLAGS += -lutil -lm
  3. CFLAGS += -Wall -Wextra -Wpedantic
  4. PREFIX ?= /usr/local
  5. DESTDIR ?=
  6.  
  7. all: msoak
  8.  
  9. .PHONY: install
  10. install:
  11.     install -d $(DESTDIR)$(PREFIX)/bin
  12.     install -m 755 msoak $(DESTDIR)$(PREFIX)/bin
  13.  
  14. .PHONY: uninstall
  15. uninstall:
  16.     rm -f $(DESTDIR)$(PREFIX)/bin/msoak
  17.  
  18. .PHONY: clean
  19. clean:
  20.     rm -f msoak
  21. martin@magni:~/src/msoak$ make
  22. cc -Wall -Wextra -Wpedantic  -lutil -lm  msoak.c   -o msoak
  23. /usr/bin/ld: /tmp/ccdvwPeY.o: in function `hsv_to_rgb':
  24. msoak.c:(.text+0xc4): undefined reference to `trunc'
  25. /usr/bin/ld: /tmp/ccdvwPeY.o: in function `main':
  26. msoak.c:(.text+0x615): undefined reference to `forkpty'
  27. collect2: error: ld returned 1 exit status
  28. make: *** [<builtin>: msoak] Error 1
  29. martin@magni:~/src/msoak$ cc -Wall -Wextra -Wpedantic   msoak.c -lutil -lm -o msoak
  30. martin@magni:~/src/msoak$ echo $?
  31. 0
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top