Kaynağa Gözat

Identical builds with Makefile and build.bx

master
Martin Dørum 5 yıl önce
ebeveyn
işleme
541eed1631
3 değiştirilmiş dosya ile 4 ekleme ve 4 silme
  1. 2
    2
      Makefile
  2. 2
    0
      build.bx
  3. 0
    2
      src/main.cc

+ 2
- 2
Makefile Dosyayı Görüntüle

src/toolchain.h src/bufio.h src/toolchain.h src/bufio.h
BUILD = build BUILD = build
OBJS = $(patsubst %,$(BUILD)/%.o,$(SRCS)) OBJS = $(patsubst %,$(BUILD)/%.o,$(SRCS))
CFLAGS = -O3 -g -Wall -Wextra -Wno-unused-parameter
CFLAGS = -std=c++14 -Wall -Wextra -Wno-unused-parameter -O3 -g
LDLIBS = -lpthread LDLIBS = -lpthread


$(BUILD)/%.cc.o: %.cc $(HDRS) $(BUILD)/%.cc.o: %.cc $(HDRS)
@mkdir -p $(@D) @mkdir -p $(@D)
$(CXX) $(CFLAGS) -c $< -o $@
$(CXX) $(CFLAGS) -o $@ -c $<


$(BUILD)/box: $(OBJS) $(BUILD)/box: $(OBJS)
@mkdir -p $(@D) @mkdir -p $(@D)

+ 2
- 0
build.bx Dosyayı Görüntüle

warnings := all extra no-unused-parameter warnings := all extra no-unused-parameter
std := c++14 std := c++14
optimize := 3 optimize := 3
cxxflags := -g
ldlibs := pthread

+ 0
- 2
src/main.cc Dosyayı Görüntüle

//#bx ldlibs := pthread

#include <getopt.h> #include <getopt.h>
#include <string.h> #include <string.h>
#include <iostream> #include <iostream>

Loading…
İptal
Kaydet