Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include $(GOROOT)/src/Make.$(GOARCH)
- BINARY_NAME=main
- MAIN_FILES=main.go
- FOO_FILES=foo/*.go
- binary: main.$(O)
- $(LD) -o $(BINARY_NAME) main.$(O)
- main.$(O): $(MAIN_FILES) foo.$(O)
- $(GC) -I. -o main.$(O) $(MAIN_FILES)
- foo.$(O): $(FOO_FILES)
- $(GC) -o foo.$(O) $(FOO_FILES)
- clean:
- rm -f $(BINARY_NAME) *.$(O)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement