Advertisement
jfcmacro

makefile

Mar 22nd, 2019
544
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.50 KB | None | 0 0
  1. all: CrearSemFumadores BorrarSemFumadores \
  2. Fumador Agente
  3.  
  4. LDFLAGS=-pthread
  5. CXXFLAGS=-Wall -std=c++11 -g
  6.  
  7. CrearSemFumadores: CrearSemFumadores.o nombres.o
  8.     $(CXX) -o $@ $(LDFLAGS) $^
  9.  
  10. CrearSemFumadores.o: CrearSemFumadores.cpp nombres.h
  11.  
  12. BorrarSemFumadores: BorrarSemFumadores.o nombres.o
  13.     $(CXX) -o $@ $(LDFLAGS) $^
  14.  
  15. BorrarSemFumadores.o: BorrarSemFumadores.cpp nombres.h
  16.  
  17. Fumador: Fumador.o
  18.     $(CXX) -o $@ $(LDFLAGS) $^
  19.  
  20. Agente: Agente.o nombres.o
  21.     $(CXX) -o $@ $(LDFLAGS) $^
  22.  
  23. Agente.o: Agente.cpp nombres.h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement