Skip to content

Commit

Permalink
update gitignore and add blockimg
Browse files Browse the repository at this point in the history
Signed-off-by: erfanoabdi <[email protected]>
  • Loading branch information
erfanoabdi committed Jul 21, 2017
1 parent f2336da commit 2597e1c
Show file tree
Hide file tree
Showing 4 changed files with 2,004 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@
*.app

cache
log.txt
blockimg
Progress.txt
30 changes: 30 additions & 0 deletions blockimg/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Erfan Abdi <[email protected]>
CC = gcc
PP = g++
AR = ar rcv
ifeq ($(windir),)
EXE =
RM = rm -f
else
EXE = .exe
RM = del
endif

CFLAGS = -ffunction-sections -O3 -std=c++11
LDFLAGS = -Wl
INC = -I. -Iinclude/ -I../include/ -I/usr/local/include/ -I../

UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
LDFLAGS += -dead_strip
else
LDFLAGS +=
endif

all:blockimg.o

blockimg.o:blockimg.cpp
$(CROSS_COMPILE)$(PP) -o $@ $(CFLAGS) -c $< $(INC)

clean:
$(RM) blockimg.o
Loading

0 comments on commit 2597e1c

Please sign in to comment.