initial commit
This commit is contained in:
commit
1d75db5bde
33 changed files with 2327 additions and 0 deletions
26
src/makefile
Normal file
26
src/makefile
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
IDIR =../include
|
||||
CC=gcc
|
||||
CFLAGS=-I$(IDIR)
|
||||
|
||||
ODIR=obj
|
||||
LDIR =-L/usr/local/lib -L/usr/lib
|
||||
|
||||
LIBS=-lportaudio
|
||||
|
||||
_DEPS = audio_handler.h frame_buffer.h
|
||||
DEPS = $(patsubst %,$(IDIR)/%,$(_DEPS))
|
||||
|
||||
_OBJ = audio_handler.o frame_buffer.o
|
||||
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
|
||||
|
||||
|
||||
$(ODIR)/%.o: %.c $(DEPS)
|
||||
$(CC) -c -o $@ $< $(CFLAGS)
|
||||
|
||||
nodeaudio: $(OBJ)
|
||||
$(CC) -o $@ $^ $(CFLAGS) $(LDIR) $(LIBS)
|
||||
|
||||
.PHONY: clean
|
||||
|
||||
clean:
|
||||
rm -f $(ODIR)/*.o *~ core $(INCDIR)/*~
|
||||
Loading…
Reference in a new issue