mirror of
https://github.com/caperren/school_archives.git
synced 2025-11-09 21:51:15 +00:00
Added VERY old code. Very cringy to look at, but hey, we all had to start somewhere...
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
# Detect platform
|
||||
UNAME = $(shell uname)
|
||||
|
||||
ifeq ($(UNAME),Linux)
|
||||
ENV=unix
|
||||
endif
|
||||
|
||||
ifeq ($(UNAME),Darwin)
|
||||
ENV=unix
|
||||
endif
|
||||
|
||||
ifndef ENV
|
||||
ENV=windows
|
||||
endif
|
||||
|
||||
ifeq ($(ENV),unix)
|
||||
CC = g++
|
||||
BOOSTFLAGS = -lboost_system
|
||||
else
|
||||
CC = g++
|
||||
BOOSTFLAGS = -lboost_system -lws2_32 -D _WIN32_WINNT=0x0501
|
||||
endif
|
||||
|
||||
all:
|
||||
$(CC) lab5.cpp -Wall $(BOOSTFLAGS)
|
||||
|
||||
clean:
|
||||
rm -f *.exe
|
||||
rm -f *.o
|
||||
|
||||
Reference in New Issue
Block a user