Skip to content

Commit

Permalink
made a simple dummy Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
yabezsh committed Jul 20, 2017
1 parent a16b21f commit 887929d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
CC=arm-linux-gnueabihf-g++
CFLAGS= -Wall -std=c++11 -Dsoc_cv_av -g
INCLUDES= -I/home/iaro/intelFPGA/16.1/embedded/ip/altera/hps/altera_hps/hwlib/include -I/home/iaro/intelFPGA/16.1/embedded/ip/altera/hps/altera_hps/hwlib/include/soc_cv_av -I/home/iaro/intelFPGA/16.1/embedded/ip/altera/hps/altera_hps/hwlib/include/soc_cv_av/socal/
SRCS= main.cpp I2C.cpp Fpga.cpp CurrentMonitor.cpp ExternalADC.cpp Salt.cpp
OBJS=$(SRCS:.cpp=.o)
MAIN=main

.PHONY= depend clean
all: $(MAIN)
@echo Congratulation! Compilation succeeded!
$(MAIN): $(OBJS)
$(CC) $(CFLAGS) $(INCLUDES) -o $(MAIN) $(OBJS)

.cpp.o:
$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
clean:
rm *.o

0 comments on commit 887929d

Please sign in to comment.