Makefile for Linux etc.
This commit is contained in:
parent
7e359019b8
commit
9738bc3952
2
.gitignore
vendored
2
.gitignore
vendored
@ -27,6 +27,8 @@
|
||||
*.i*86
|
||||
*.x86_64
|
||||
*.hex
|
||||
gps-sdr-sim
|
||||
gps-sdr-sim-lut
|
||||
|
||||
# Debug files
|
||||
*.dSYM/
|
||||
|
21
Makefile
Normal file
21
Makefile
Normal 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
|
Loading…
Reference in New Issue
Block a user