view Makefile @ 0:c55ea9478c80

Hello Gensokyo!
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 21 May 2013 10:29:21 +0200
parents
children 83859b2e2bae
line wrap: on
line source

CC = gcc
CFLAGS += -Ifmgen -Wall -pipe -O2 -fno-math-errno -fno-omit-frame-pointer -fno-asynchronous-unwind-tables
CXXFLAGS += -Ifmgen -Wall -Wno-write-strings -pipe -O2 -fno-math-errno -fno-exceptions -fno-rtti -fno-omit-frame-pointer -fno-asynchronous-unwind-tables

# Uncomment exactly one of the following:
AUDIO_DRV = oss_audio.o
# AUDIO_DRV = alsa_pcm_api.o
# CFLAGS += -DUSE_ALSA=1
# AUDIO_DRV = wave_out.o

all: pmdwin
%.o: %.c
	$(CC) $(CFLAGS) -c $<

%.o: %.cc
	$(CXX) $(CXXFLAGS) -c $<

clean:
	rm *.o pmdwin

pmdwin: pmd_play.o pmdwin.o table.o getopt.o lfg.o $(AUDIO_DRV) fmgen.o
	$(CC) -o $@ $^