Advertisement
Guest User

Untitled

a guest
Dec 12th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. # Makefile for Unix Frotz
  2. # GNU make is required.
  3.  
  4. SOURCES = ux_audio.c ux_audio_none.c ux_audio_oss.c ux_blorb.c ux_init.c \
  5. ux_input.c ux_pic.c ux_screen.c ux_text.c
  6.  
  7. HEADERS = ux_blorb.h ux_frotz.h ux_setup.h defines.h
  8.  
  9. OBJECTS = $(SOURCES:.c=.o)
  10.  
  11. TARGET = frotz_curses.a
  12.  
  13. ARFLAGS = rc
  14.  
  15. SOUND_TYPE ?= ao
  16.  
  17. ifeq ($(SOUND_TYPE), ao)
  18. CFLAGS += -pthread
  19. else ifeq ($(SOUND_TYPE), none)
  20.  
  21. else ifndef SOUND_TYPE
  22.  
  23. else
  24. $(error Invalid sound choice $(SOUND_TYPE))
  25. endif
  26.  
  27. .PHONY: clean
  28. .DELETE_ON_ERROR:
  29.  
  30. $(TARGET): $(OBJECTS)
  31. $(AR) $(ARFLAGS) $@ $?
  32. $(RANLIB) $@
  33. @echo "** Done with curses interface."
  34.  
  35. clean:
  36. rm -f $(TARGET) $(OBJECTS)
  37.  
  38. %.o: %.c
  39. $(CC) $(CFLAGS) $(CURSES_CFLAGS) $(NO_SOUND) -fPIC -fpic -o $@ -c $<
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement