Commit a37b6e2a authored by mtabriz's avatar mtabriz

cleanup

parent 26223b0b
Pipeline #67899 passed with stage
in 41 seconds
......@@ -7,7 +7,6 @@ stages:
build:
stage: build
script:
- cat /proc/version
- yum -y install bison flex
- cd bin
- make
SRC=../src/
CPP=g++
CPPFLAGS=-O2 -I$(SRC)
LEX=flex
YACC=bison
EXE=findentm
DEP=$(SRC)parser.cpp $(SRC)lexer.cpp
SRC_FILE = $(DEP) $(wildcard $(SRC)*.cpp)
OBJ_FILE = $(notdir $(SRC_FILE:.cpp=.o))
LDFLAGS =
all: $(OBJ_FILE) $(EXE)
$(OBJ_FILE): %.o:$(SRC)%.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@
$(EXE):
$(CPP) $(OBJ_FILE) -o $(EXE) $(LDFLAGS)
$(SRC)parser.cpp:
$(YACC) -o $(SRC)y.tab.c -o $(SRC)parser.cpp -d $(SRC)parser.y
$(SRC)lexer.cpp:
$(LEX) -i -o $(SRC)lexer.cpp $(SRC)lexer.l
.PHONY: clean
clean:
rm -f $(OBJ_FILE) $(DEP) $(EXE)
EXTRA_DIST = findent.el README
This diff is collapsed.
EXTRA_DIST = findent-gedit findent.plugin findent.py README
This diff is collapsed.
This diff is collapsed.
EXTRA_DIST = findent.vim fortran.vim README
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment