Makefile for Linux etc.

This commit is contained in:
Shigeru KANEMOTO 2015-06-30 13:10:15 +09:00
parent 7e359019b8
commit 9738bc3952
2 changed files with 23 additions and 0 deletions

2
.gitignore vendored
View File

@ -27,6 +27,8 @@
*.i*86
*.x86_64
*.hex
gps-sdr-sim
gps-sdr-sim-lut
# Debug files
*.dSYM/

21
Makefile Normal file
View File

@ -0,0 +1,21 @@
# Makefile for Linux etc.
.PHONY: all clean
all: gps-sdr-sim gps-sdr-sim-lut
SHELL=/bin/bash
CC=gcc
CFLAGS=-fopenmp
LDFLAGS=-lm -fopenmp
gps-sdr-sim: gpssim.o
${CC} $< ${LDFLAGS} -o $@
gps-sdr-sim-lut: gpssim-lut.o
${CC} $< ${LDFLAGS} -o $@
gpssim-lut.o: gpssim.c
${CC} -c -D_SINE_LUT ${CFLAGS} $< -o $@
clean:
rm -f gpssim.o gpssim-lut.o gps-sdr-sim gps-sdr-sim-lut