Skip to content

Commit

Permalink
moc test ongoing dev and dir reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoirier committed Dec 16, 2015
1 parent da23e0b commit 49b321c
Show file tree
Hide file tree
Showing 5 changed files with 297 additions and 75 deletions.
11 changes: 7 additions & 4 deletions moc_test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@


all:
gcc -Wall -c librtlsdr_moc.c -o librtlsdr_moc.o
ar rcs librtlsdr_moc.a librtlsdr_moc.o
CC="gcc -DMOCK_TEST" go build -tags 'MOC_TEST' --ldflags '-extldflags "-static"' -o gortlsdr_moc.a ../rtlsdr.go ../exports.go
cd gortlsdr_moc && gcc -Wall -c librtlsdr_moc.c -o librtlsdr_moc.o
cd gortlsdr_moc && ar rcs librtlsdr_moc.a librtlsdr_moc.o
cd gortlsdr_moc && cp ../../rtlsdr.go .
cd gortlsdr_moc && cp ../../exports.go .
cd gortlsdr_moc && CC="gcc -DMOCK_TEST" go build -tags 'MOC_TEST' --ldflags '-extldflags "-static"' -o gortlsdr_moc.a rtlsdr.go exports.go
go build main_moc.go
cd gortlsdr_moc && rm ./rtlsdr.go ./exports.go

clean:
rm -f *.o *.a
rm -f main_moc ./gortlsdr_moc/*.o ./gortlsdr_moc/*.a ./gortlsdr_moc/rtlsdr.go ./gortlsdr_moc/exports.go



File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 49b321c

Please sign in to comment.