Skip to content
Snippets Groups Projects
Unverified Commit 912da928 authored by pfilipch's avatar pfilipch Committed by GitHub
Browse files

Merge pull request #8 from luntik2012/master

Makefile fixed. conio.h deleted
parents 2b70ed68 fe9a7d40
Branches
No related tags found
No related merge requests found
......@@ -5,15 +5,19 @@ DEPENDS = src/librf625.cpp \
src/librf625.h \
src/sockfun.cpp
lib: ${DEPENDS}
${CC} -shared ${CXX_FLAGS} -o librf625.so src/librf625.cpp src/sockfun.cpp
librf625.so: $(DEPENDS)
$(CC) -shared $(CXX_FLAGS) -o $@ src/librf625.cpp src/sockfun.cpp
test: ${DEPENDS}
${CC} -DTEST ${CXX_FLAGS} -o test src/librf625.cpp src/sockfun.cpp
$(CC) -DTEST $(CXX_FLAGS) -o $@ src/librf625.cpp src/sockfun.cpp
sample: librf625.so samples/udp_stream.cpp src/librf625.h
g++ samples/udp_stream.cpp -I ./src -L. -lrf625 -o $@ -lcurses
clean:
rm *.so test
rm *.so test sample
all: lib test
all: librf625.so test sample
.PHONY : lib test clean all
.PHONY : librf625.so test clean all sample
#include <conio.h>
#include <iostream>
#include <fstream>
#include <map>
#include <string>
#include "librf625.h"
#ifdef __linux__
#include <arpa/inet.h>
#include <curses.h>
#else
#include <conio.h>
#endif
std::map<int,std::ofstream*> dump_files;
void udp_proc(rf625_profile prf)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment